cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #01981
[Merge] ~daniel-thewatkins/cloud-init/+git/cloud-init:dsidentify_configdrive_latest into cloud-init:master
Dan Watkins has proposed merging ~daniel-thewatkins/cloud-init/+git/cloud-init:dsidentify_configdrive_latest into cloud-init:master.
Requested reviews:
cloud init development team (cloud-init-dev)
Related bugs:
Bug #1673637 in cloud-init: "cloud-init - Hosts in softlayer receiving warning"
https://bugs.launchpad.net/cloud-init/+bug/1673637
For more details, see:
https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/322598
--
Your team cloud init development team is requested to review the proposed merge of ~daniel-thewatkins/cloud-init/+git/cloud-init:dsidentify_configdrive_latest into cloud-init:master.
diff --git a/tools/ds-identify b/tools/ds-identify
index 5d390ef..a40b14d 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -552,13 +552,14 @@ check_configdrive_v2() {
# look in /config-drive <vlc>/seed/config_drive for a directory
# openstack/YYYY-MM-DD format with a file meta_data.json
local d=""
- for d in /config-drive "${PATH_VAR_LIB_CLOUD}/seed/config_drive"; do
+ local vlc_config_drive_path="${PATH_VAR_LIB_CLOUD}/seed/config_drive"
+ for d in /config-drive $vlc_config_drive_path; do
set +f; set -- "$d/openstack/"2???-??-??/meta_data.json; set -f;
[ -f "$1" ] && return ${DS_FOUND}
done
# at least one cloud (softlayer) seeds config drive with only 'latest'.
local lpath="openstack/latest/meta_data.json"
- if [ -e "${PATH_VAR_LIB_CLOUD}/$lpath" ]; then
+ if [ -e "$vlc_config_drive_path/$lpath" ]; then
debug 1 "config drive seeded directory had only 'latest'"
return ${DS_FOUND}
fi
Follow ups