Reason: vping calls this function until the VMs are deleted,
when that happens, it throws an exception and returns None,
which is fine, but the message error on the output is a
bit confusing if you don't know the context.
Change-Id: I8a4c408197d3c83151fb15a12387575d9fe1d553
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit
7dd58acc208727aaed83807f065dedcc899b0137)
instance = nova_client.servers.get(instance.id)
return instance.status
except Exception, e:
- print "Error [get_instance_status(nova_client, '%s')]:" % \
- str(instance), e
+ #print "Error [get_instance_status(nova_client, '%s')]:" % \
+ # str(instance), e
return None