lint
Change-Id: I700cedb4f40d51968ee6f68ef4454efe245bce4c
This commit is contained in:
parent
7263de81b1
commit
1d74d0d906
|
@ -16,7 +16,7 @@
|
||||||
CD_TYPES = {
|
CD_TYPES = {
|
||||||
"vfat", # Visible device (with partition table).
|
"vfat", # Visible device (with partition table).
|
||||||
"iso", # "Raw" format containing ISO bytes.
|
"iso", # "Raw" format containing ISO bytes.
|
||||||
"files" # Set of files. Considers a number of files in directory as a pseudo-config-drive.
|
"files" # Considers files in directory as a pseudo-config-drive.
|
||||||
}
|
}
|
||||||
CD_LOCATIONS = {
|
CD_LOCATIONS = {
|
||||||
# Look into optical devices. Only an ISO format could be
|
# Look into optical devices. Only an ISO format could be
|
||||||
|
@ -28,7 +28,8 @@ CD_LOCATIONS = {
|
||||||
# Search through partitions for raw ISO content or through volumes
|
# Search through partitions for raw ISO content or through volumes
|
||||||
# containing configuration drive's content.
|
# containing configuration drive's content.
|
||||||
"partition",
|
"partition",
|
||||||
# Search for configuration drive's content in %PROGRAMDATA%\{config drive label} directory
|
# Search for configuration drive's content in
|
||||||
|
# %PROGRAMDATA%\{config drive label} directory
|
||||||
"directory"
|
"directory"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,8 @@ class WindowsConfigDriveManager(base.BaseConfigDriveManager):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _get_config_drive_from_directory(self, drive_label, metadata_file):
|
def _get_config_drive_from_directory(self, drive_label, metadata_file):
|
||||||
"""Look through directory %PROGRAMDTA%\drive_label for config drive files."""
|
"""Look through directory %PROGRAMDTA%\drive_label
|
||||||
|
for config drive files."""
|
||||||
sourcefilespath = os.environ["PROGRAMDATA"] + f"\{drive_label}"
|
sourcefilespath = os.environ["PROGRAMDATA"] + f"\{drive_label}"
|
||||||
if self._meta_data_file_exists(sourcefilespath, metadata_file):
|
if self._meta_data_file_exists(sourcefilespath, metadata_file):
|
||||||
LOG.info('Config Drive found on %s', sourcefilespath)
|
LOG.info('Config Drive found on %s', sourcefilespath)
|
||||||
|
|
Loading…
Reference in New Issue