Use %s in case instance_id came through as a string
This commit is contained in:
parent
458bf9682d
commit
c363c2aaac
|
@ -319,12 +319,12 @@ class API(base.Base):
|
|||
try:
|
||||
instance = self.get(context, instance_id)
|
||||
except exception.NotFound:
|
||||
LOG.warning(_("Instance %d was not found during terminate"),
|
||||
LOG.warning(_("Instance %s was not found during terminate"),
|
||||
instance_id)
|
||||
raise
|
||||
|
||||
if (instance['state_description'] == 'terminating'):
|
||||
LOG.warning(_("Instance %d is already being terminated"),
|
||||
LOG.warning(_("Instance %s is already being terminated"),
|
||||
instance_id)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue