Skip to content

Commit

Permalink
fix: handling unbound vnet guid case
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce-Soghigian committed Feb 5, 2025
1 parent 95f05ed commit caa3130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/deploy/configure-values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ if [[ ! -v VNET_SUBNET_ID ]]; then
VNET_SUBNET_ID=$(jq -r ".subnets[0].id" <<< "$VNET_JSON")
fi

if [[ -z $VNET_GUID ]]; then
VNET_GUID=$(jq -r ".properties.resourceGuid" <<< "$VNET_JSON")
if [[ ! -v VNET_GUID ]] || [[ -z $VNET_GUID ]]; then
VNET_GUID=$(jq -r ".properties.resourceGuid" <<< "$VNET_JSON")
fi

# The // empty ensures that if the files is 'null' or not prsent jq will output nothing
Expand Down

0 comments on commit caa3130

Please sign in to comment.