2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 04:07:48 +00:00

Merge "Support no-image media in list"

This commit is contained in:
Zuul 2019-07-01 18:46:46 +00:00 committed by Gerrit Code Review
commit 320d08df2e

View File

@ -1362,6 +1362,9 @@ class Command(object):
if vminfo['Image']:
imageurl = vminfo['Image'].replace('/' + vminfo['ImageName'], '')
yield media.Media(vminfo['ImageName'], imageurl)
elif vminfo['Inserted'] and vminfo['ImageName']:
yield media.Media(vminfo['ImageName'])
def get_storage_configuration(self):
""""Get storage configuration data