Use %s in case instance_id came through as a string

This commit is contained in:
Rick Harris 2011-03-03 18:21:54 +00:00
parent 458bf9682d
commit c363c2aaac
1 changed files with 2 additions and 2 deletions

View File

@ -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