Replace sed for so-yaml

This commit is contained in:
Josh Brower
2024-01-10 11:15:51 -05:00
parent 6ff764e6a1
commit f21f0a9a96

View File

@@ -36,7 +36,9 @@ while [[ $try_count -le 6 ]]; do
}" }"
# Update the Automation API key in the secrets pillar # Update the Automation API key in the secrets pillar
sed "s/playbook_automation_api_key:/playbook_automation_api_key: ${automation_api_key}/g" -i $local_salt_dir/pillar/secrets.sls so-yaml.py remove $local_salt_dir/pillar/secrets.sls secrets.playbook_automation_api_key
printf '%s\n'\
" playbook_automation_api_key: $automation_api_key" >> $local_salt_dir/pillar/secrets.sls
exit 0 exit 0
fi fi
((try_count++)) ((try_count++))