diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-12-20 23:51:09 +0000 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2019-01-23 13:23:09 +0100 |
commit | ee6bb34376e1814a91fc513a811b059b04260d4c (patch) | |
tree | e784eadea4037208dfcf973a1f1678e97d2d3300 | |
parent | 65318379314278e19eb990d58000c5c66b08da24 (diff) | |
download | vyos-cloud-init-ee6bb34376e1814a91fc513a811b059b04260d4c.tar.gz vyos-cloud-init-ee6bb34376e1814a91fc513a811b059b04260d4c.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.
-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;; |