From 33e65af2bfd897131c40fb16e1b235401c3e8396 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Thu, 27 Feb 2014 10:55:56 +0800 Subject: [PATCH] Fix typo and remove unused code in nova_utils.py Mulitple -> Multiple Remove unused code 'image_id = None' Change-Id: I1d0cc5c2bd592b066127e07c595cc606a916b4aa --- heat/engine/resources/nova_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/heat/engine/resources/nova_utils.py b/heat/engine/resources/nova_utils.py index 7b82df6670..7eee847d87 100644 --- a/heat/engine/resources/nova_utils.py +++ b/heat/engine/resources/nova_utils.py @@ -74,7 +74,6 @@ def get_image_id(nova_client, image_identifier): :returns: the id of the requested :image_identifier: :raises: exception.ImageNotFound, exception.PhysicalResourceNameAmbiguity ''' - image_id = None if uuidutils.is_uuid_like(image_identifier): try: image_id = nova_client.images.get(image_identifier).id @@ -97,7 +96,7 @@ def get_image_id(nova_client, image_identifier): image_identifier) raise exception.ImageNotFound(image_name=image_identifier) elif len(image_names) > 1: - logger.info(_("Mulitple images %s were found in glance with name") + logger.info(_("Multiple images %s were found in glance with name") % image_identifier) raise exception.PhysicalResourceNameAmbiguity( name=image_identifier)