summaryrefslogtreecommitdiff
path: root/tools/ds-identify
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-12-20 23:51:09 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-12-20 23:51:09 +0000
commit12bc76cebf69a1c8cf9eba78431333842ed170cf (patch)
tree12586940cd0cce8f9677506234dba4b05762f4e4 /tools/ds-identify
parenta809b25c959228ff612ae8e6aaae215bdc028c64 (diff)
downloadvyos-cloud-init-12bc76cebf69a1c8cf9eba78431333842ed170cf.tar.gz
vyos-cloud-init-12bc76cebf69a1c8cf9eba78431333842ed170cf.zip
ds-identify: fix wrong variable name in ovf_vmware_transport_guestinfo.
ovf_vmware_transport_guestinfo is not currently tested. It used '$1' instead of '$out' when checking for xml content in the output of vmware-rpctool.
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 c61f18ae..b78b2731 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -736,7 +736,7 @@ ovf_vmware_transport_guestinfo() {
debug 1 "Running on vmware but rpctool query returned $ret: $out"
return 1
fi
- case "$1" in
+ case "$out" in
"<?xml"*|"<?XML"*) :;;
*) debug 1 "guestinfo.ovfEnv had non-xml content: $out";
return 1;;