diff --git a/ci-operator/step-registry/baremetalds/sno/gather/baremetalds-sno-gather-commands.sh b/ci-operator/step-registry/baremetalds/sno/gather/baremetalds-sno-gather-commands.sh index bc3c0c83c0fe0..c77bc7ed339e9 100644 --- a/ci-operator/step-registry/baremetalds/sno/gather/baremetalds-sno-gather-commands.sh +++ b/ci-operator/step-registry/baremetalds/sno/gather/baremetalds-sno-gather-commands.sh @@ -24,7 +24,7 @@ function getlogs() { trap getlogs EXIT echo "### Gathering logs..." -timeout -s 9 1h ssh "${SSHOPTS[@]}" "root@${IP}" bash - << "EOF" |& sed -e 's/.*auths.*/*** PULL_SECRET ***/g' +timeout -s 9 1h ssh "${SSHOPTS[@]}" "root@${IP}" 'script=$(cat); bash -c "$script"' << "EOF" |& sed -e 's/.*auths.*/*** PULL_SECRET ***/g' set -xeo pipefail source /root/config