[fix] Redirect ca state apply in setup to /dev/null

Redirect ca state apply line in accept_salt_key_remote to /dev/null to avoid generating error in setup log
This commit is contained in:
William Wernert
2020-08-05 16:13:25 -04:00
parent 407160b729
commit 64c366971f

View File

@@ -27,7 +27,7 @@ accept_salt_key_remote() {
echo "Accept the key remotely on the manager" >> "$setup_log" 2>&1
# Delete the key just in case.
ssh -i /root/.ssh/so.key soremote@"$MSRV" sudo salt-key -d "$MINION_ID" -y
salt-call state.apply ca
salt-call state.apply ca >> /dev/null 2>&1
ssh -i /root/.ssh/so.key soremote@"$MSRV" sudo salt-key -a "$MINION_ID" -y
}