From bed42ed1aee7f1255cf98253c6b4f47c63f1161f Mon Sep 17 00:00:00 2001 From: Luke Repko Date: Mon, 4 Nov 2024 08:32:54 -0600 Subject: [PATCH] fix: trailing whitespace and eof --- bin/install-nova.sh | 2 +- bin/label-nodes.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install-nova.sh b/bin/install-nova.sh index d04430ad..22a4bfc7 100755 --- a/bin/install-nova.sh +++ b/bin/install-nova.sh @@ -28,4 +28,4 @@ pushd /opt/genestack/submodules/openstack-helm --set network.ssh.private_key="$(kubectl -n openstack get secret nova-ssh-keypair -o jsonpath='{.data.private_key}' | base64 -d)"$'\n' \ --post-renderer /etc/genestack/kustomize/kustomize.sh \ --post-renderer-args nova/base $@ -popd \ No newline at end of file +popd diff --git a/bin/label-nodes.sh b/bin/label-nodes.sh index 91e7c751..cce60d76 100755 --- a/bin/label-nodes.sh +++ b/bin/label-nodes.sh @@ -10,7 +10,7 @@ INVENTORY_FILE="$1" label_nodes() { local group=$1 local label=$2 - + if grep -q "$group:" $INVENTORY_FILE; then local nodes=($(grep -A 1 "children:" $INVENTORY_FILE | grep -A 1 " $group:" | grep -Eo "^\s+\S+" | tr -d ' ')) for node in "${nodes[@]}"; do