components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py
changeset 4582 cfdc60640ff6
parent 4409 5a016b00883a
child 4653 4fb953160e20
equal deleted inserted replaced
4581:021d774e32e1 4582:cfdc60640ff6
   141         evs_contr = rc.get_object(evsc.EVSController())
   141         evs_contr = rc.get_object(evsc.EVSController())
   142     except:
   142     except:
   143         raise SystemExit(_("Could not retrieve EVS info from EVS Controller"))
   143         raise SystemExit(_("Could not retrieve EVS info from EVS Controller"))
   144     evsinfo = evs_contr.getEVSInfo()
   144     evsinfo = evs_contr.getEVSInfo()
   145     if not evsinfo:
   145     if not evsinfo:
   146         raise SystemExit(_("No data to migrate"))
   146         print "No data to migrate"
       
   147         return
   147 
   148 
   148     config.readfp(open("/etc/neutron/neutron.conf"))
   149     config.readfp(open("/etc/neutron/neutron.conf"))
   149     if config.has_option("database", 'connection'):
   150     if config.has_option("database", 'connection'):
   150         SQL_CONNECTION = config.get("database", 'connection')
   151         SQL_CONNECTION = config.get("database", 'connection')
   151     else:
   152     else: