Fix more str!=int bugs
When we return ids after creating servers or images, coerce them to strings so they compare correctly when we wait for them. Change-Id: I6d4575f9a392b6028bcec4ad57299b7f467cb764
This commit is contained in:
parent
55be19f0f2
commit
f73676bc31
@ -91,7 +91,7 @@ class NotFound(Exception):
|
||||
class CreateServerTask(Task):
|
||||
def main(self, client):
|
||||
server = client.servers.create(**self.args)
|
||||
return server.id
|
||||
return str(server.id)
|
||||
|
||||
|
||||
class GetServerTask(Task):
|
||||
@ -169,7 +169,7 @@ class DeleteFloatingIPTask(Task):
|
||||
class CreateImageTask(Task):
|
||||
def main(self, client):
|
||||
# This returns an id
|
||||
return client.servers.create_image(**self.args)
|
||||
return str(client.servers.create_image(**self.args))
|
||||
|
||||
|
||||
class GetImageTask(Task):
|
||||
|
Loading…
x
Reference in New Issue
Block a user