Browse Source

Merge "Overcloud image has missing kernel_id and ramdisk_id properties" into stable/train

changes/77/790977/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
0a0296f1fa
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tripleoclient/v1/overcloud_image.py

+ 2
- 2
tripleoclient/v1/overcloud_image.py View File

@ -184,12 +184,12 @@ class FileImageClientAdapter(BaseClientAdapter):
def get_image_property(self, image, prop):
if prop == 'kernel_id':
path = os.path.splitext(image.id)[0] + '.vmlinuz'
if os.path.exists(path):
if os.path.exists(path.replace("file://", "")):
return path
return None
elif prop == 'ramdisk_id':
path = os.path.splitext(image.id)[0] + '.initrd'
if os.path.exists(path):
if os.path.exists(path.replace("file://", "")):
return path
return None
raise ValueError('Unsupported property %s' % prop)


Loading…
Cancel
Save