Skip to content

Commit

Permalink
Merge pull request #4037 from odvarkadaniel/capi-fix-vm-hostname
Browse files Browse the repository at this point in the history
OCPCLOUD-1609: Fix syntax in vsphere-hostname.yaml for CAPI machines
  • Loading branch information
openshift-merge-bot[bot] committed Nov 20, 2023
2 parents d469add + 3a39f6f commit 9dcb45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/common/vsphere/files/vsphere-hostname.yaml
Expand Up @@ -13,7 +13,7 @@ contents:
fi
if [ -z "${vm_name}" ]; then
if capi_vm_name=$(bin/vmtoolsd --cmd 'info-get guestinfo.metadata' | base64 -d | grep local-hostname | awk '{ print $2; }' | tr -d '",'; then
if capi_vm_name=$(/bin/vmtoolsd --cmd 'info-get guestinfo.metadata' | base64 -d | grep local-hostname | awk '{ print $2; }' | tr -d '",'); then
/usr/bin/hostnamectl set-hostname --static ${capi_vm_name}
fi
fi

0 comments on commit 9dcb45d

Please sign in to comment.