commit | 0e64ea227153f4db9df9500f61f43a0d9217060f | [log] [tgz] |
---|---|---|
author | Yulia Portnova <yportnova@mirantis.com> | Fri Mar 20 17:27:22 2015 +0200 |
committer | Yulia Portnova <yportnova@mirantis.com> | Fri Mar 20 17:29:32 2015 +0200 |
tree | 31b99e18f7713177b4011de54ff516ed470bf012 | |
parent | b3c7896cbaed6b5e2bddc0038d47f1b73ac84a90 [diff] [blame] |
discovering
diff --git a/starts_vms.py b/starts_vms.py index a4720cf..62bff8c 100644 --- a/starts_vms.py +++ b/starts_vms.py
@@ -169,13 +169,11 @@ if flt_ip is Allocate: flt_ip = nova.floating_ips.create(pool) - if flt_ip is not None: # print "attaching ip to server" srv.add_floating_ip(flt_ip) - return (flt_ip.ip, srv) - else: - return (None, srv) + + return nova.servers.get(srv.id) def clear_all(nova, name_templ="ceph-test-{0}"):