Skip to content

Commit

Permalink
Fix: Support vmtoolsd from $PATH (#368)
Browse files Browse the repository at this point in the history
* Fix: Support vmtoolsd from path, as newer flatcar releases moved the tools to another location

Signed-off-by: Kai Fink <kai.fink@yahoo.de>

* Fix: make it easier by adding the legacy path to PATH

Signed-off-by: Kai Fink <kai.fink@yahoo.de>

* Fix: Remove spaces to fulfill linting

Signed-off-by: Kai Fink <kai.fink@yahoo.de>

---------

Signed-off-by: Kai Fink <kai.fink@yahoo.de>
  • Loading branch information
4ch3los authored Mar 5, 2024
1 parent 44cf897 commit e31b599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/osps/default/osp-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ spec:
source /etc/environment
configureVCloudNetworkStatic: |-
function query_ovf () {
PATH=$PATH:/usr/share/oem/bin/
local QUERY=$1
echo $(/usr/share/oem/bin/vmtoolsd --cmd "info-get guestinfo.ovfEnv" | grep "${QUERY}" | sed -e 's/.*oe:value="//g' | sed 's/"\/>//g')
echo $(vmtoolsd --cmd "info-get guestinfo.ovfEnv" | grep "${QUERY}" | sed -e 's/.*oe:value="//g' | sed 's/"\/>//g')
}
mask2cdr () {
Expand Down

0 comments on commit e31b599

Please sign in to comment.