Support 'cidata' disk label for configdrive.
Change-Id: Ia774374edc358384139fe798b77a967037b8c540
This commit is contained in:
parent
4bb6895f11
commit
3c0760a89f
|
@ -27,4 +27,4 @@ class ConfigDriveService(baseconfigdrive.BaseConfigDriveService,
|
|||
|
||||
def __init__(self):
|
||||
super(ConfigDriveService, self).__init__(
|
||||
'config-2', 'openstack\\latest\\meta_data.json')
|
||||
['config-2', 'cidata'], 'openstack\\latest\\meta_data.json')
|
||||
|
|
|
@ -49,7 +49,10 @@ def is_vfat_drive(osutils, drive_path, drive_label):
|
|||
LOG.debug("Obtained label information for drive %r: %r", drive_path, out)
|
||||
out = out.decode().strip()
|
||||
match = VOLUME_LABEL_REGEX.search(out)
|
||||
drive_labels = [drive_label.lower(), drive_label.upper()]
|
||||
drive_labels = [
|
||||
*[drive.lower() for drive in drive_label],
|
||||
*[drive.upper() for drive in drive_label],
|
||||
]
|
||||
return match.group(1) in drive_labels if match else False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue