summaryrefslogtreecommitdiff
path: root/tools/ds-identify
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-02-28 11:38:34 -0500
committerScott Moser <smoser@brickies.net>2017-02-28 11:38:34 -0500
commit4bb60d517da45919310265fa241e1e76b63e97bd (patch)
tree9dbaa75391e6d09e6ada8202aff6ae4164f19e0f /tools/ds-identify
parent05afe04edbe4c28f2170194d226821c1e755ee2d (diff)
downloadvyos-cloud-init-4bb60d517da45919310265fa241e1e76b63e97bd.tar.gz
vyos-cloud-init-4bb60d517da45919310265fa241e1e76b63e97bd.zip
tools/ds-identify: look at cloud.cfg when looking for ec2 strict_id.
In the interest of speed I had skipped the parsing of /etc/cloud/cloud.cfg for the ec2 strict_id setting. In hindsight it seems reasonable for people to put settings there.
Diffstat (limited to 'tools/ds-identify')
-rwxr-xr-xtools/ds-identify2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index e618963b..9711a234 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -651,7 +651,7 @@ ec2_read_strict_setting() {
# 3. look for the key 'strict_id' (datasource/Ec2/strict_id)
local match="" bp="${PATH_CLOUD_CONFD}/cloud.cfg"
- match="$bp.d/*[Ee][Cc]2*.cfg"
+ match="$bp $bp.d/*[Ee][Cc]2*.cfg"
if check_config strict_id "$match"; then
debug 2 "${_RET_fname} set strict_id to $_RET"
return 0