diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-12-20 23:51:09 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2018-12-20 23:51:09 +0000 |
commit | 12bc76cebf69a1c8cf9eba78431333842ed170cf (patch) | |
tree | 12586940cd0cce8f9677506234dba4b05762f4e4 /tools/ds-identify | |
parent | a809b25c959228ff612ae8e6aaae215bdc028c64 (diff) | |
download | vyos-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-x | tools/ds-identify | 2 |
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;; |