Commit 5d573214 authored by Marco Mariani's avatar Marco Mariani

avoid using instance.getComputerId() which does not exist.

parent 69b1df32
...@@ -150,7 +150,7 @@ class Recipe(object): ...@@ -150,7 +150,7 @@ class Recipe(object):
if self.failed is not None: if self.failed is not None:
# Check instance status to know if instance has been deployed # Check instance status to know if instance has been deployed
try: try:
if self.instance.getComputerId() is not None: if self.instance._computer_id is not None:
status = self.instance.getState() status = self.instance.getState()
else: else:
status = 'not ready yet' status = 'not ready yet'
...@@ -176,7 +176,7 @@ class RequestOptional(Recipe): ...@@ -176,7 +176,7 @@ class RequestOptional(Recipe):
if self.failed is not None: if self.failed is not None:
# Check instance status to know if instance has been deployed # Check instance status to know if instance has been deployed
try: try:
if self.instance.getComputerId() is not None: if self.instance._computer_id is not None:
status = self.instance.getState() status = self.instance.getState()
else: else:
status = 'not ready yet' status = 'not ready yet'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment