Use image attribute if specified in os properties
Change-Id: I1240e19a2724ed5c1a0f1ab6859539e876ae9dae
This commit is contained in:
parent
68ea2742cc
commit
420a41d60d
|
@ -141,6 +141,9 @@ class ToscaCompute(HotResource):
|
|||
return None
|
||||
|
||||
def _best_image(self, properties):
|
||||
if 'image' in properties:
|
||||
return properties['image']
|
||||
|
||||
# Check whether user exported all required environment variables.
|
||||
images = glance_images.get_images()
|
||||
match_all = images.keys()
|
||||
|
|
Loading…
Reference in New Issue