21356776 evs-neutron migration script should exit gracefully if there is nothing to do
authorGirish Moodalbail <Girish.Moodalbail@oracle.COM>
Wed, 01 Jul 2015 10:21:52 -0700
changeset 4582 cfdc60640ff6
parent 4581 021d774e32e1
child 4584 a5e61533b5ac
21356776 evs-neutron migration script should exit gracefully if there is nothing to do
components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py
--- a/components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py	Wed Jul 01 09:07:33 2015 -0700
+++ b/components/openstack/neutron/files/evs/migrate/evs-neutron-migration.py	Wed Jul 01 10:21:52 2015 -0700
@@ -143,7 +143,8 @@
         raise SystemExit(_("Could not retrieve EVS info from EVS Controller"))
     evsinfo = evs_contr.getEVSInfo()
     if not evsinfo:
-        raise SystemExit(_("No data to migrate"))
+        print "No data to migrate"
+        return
 
     config.readfp(open("/etc/neutron/neutron.conf"))
     if config.has_option("database", 'connection'):