5dba5c60f6
By default, all config drive types are checked. But if somehow, the implementation of each type fails, the metadata service errors out and does not check for the next type. The issue was reported here: https://ask.cloudbase.it/question/3094/windows-server-2016-extendvolumespluginp-doesnt-work/ In that case, in the method is_vfat_drive: match = VOLUME_LABEL_REGEX.search(out) return match.group(1) in CONFIG_DRIVE_LABELS if match value is None, the return line throws an error: AttributeError: 'NoneType' object has no attribute 'group' To make sure that no other implementation will bubble up the error, we catch the error in the config_drive metadata service. Catching the error will allow that the next config_drive type will be checked for metadata. Change-Id: I0d9967ec6a81214c7d78be667cffa4a98758587a |
||
---|---|---|
.. | ||
storage | ||
__init__.py | ||
test_bootconfig.py | ||
test_disk.py | ||
test_licensing.py | ||
test_netlbfo.py | ||
test_network.py | ||
test_powercfg.py | ||
test_privilege.py | ||
test_rdp.py | ||
test_security.py | ||
test_timezone.py | ||
test_updates.py | ||
test_vds.py | ||
test_vfat.py | ||
test_winrmconfig.py | ||
test_wmi_loader.py | ||
test_ws2_32.py | ||
test_x509.py |