Make the print info support i18n
When OSC failed to set a image's property, it will print the image name and status, which is an useful info to users. So translate this massage, and record it in log. Change-Id: Icdff4dab17dedcb40289700c4cd278e6e62eea25
This commit is contained in:
parent
7cda2b2a06
commit
a4dd1fc714
@ -836,7 +836,8 @@ class SetImage(command.Command):
|
||||
image = image_client.images.update(image.id, **kwargs)
|
||||
except Exception as e:
|
||||
if activation_status is not None:
|
||||
print("Image %s was %s." % (image.id, activation_status))
|
||||
LOG.info(_("Image %(id)s was %(status)s."),
|
||||
{'id': image.id, 'status': activation_status})
|
||||
raise e
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user