File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ function post_config_init {
61
61
}
62
62
63
63
function redact_file {
64
- _ANSIBLE_VERBOSITY=$ANSIBLE_VERBOSITY
64
+ if [ ! -z ${ANSIBLE_VERBOSITY: +x} ]; then
65
+ _ANSIBLE_VERBOSITY=$ANSIBLE_VERBOSITY
66
+ fi
65
67
unset ANSIBLE_VERBOSITY
66
68
if [ ! -f " $1 " ]; then
67
69
log_info " Skipping redaction of: $1 "
@@ -75,7 +77,9 @@ function redact_file {
75
77
$KAYOBE_AUTOMATION_UTILS_PATH /kayobe-automation-redact <( $ANSIBLE_VAULT view --vault-password-file $KAYOBE_AUTOMATION_UTILS_PATH /kayobe-automation-vault-helper $1 ) > $1 .redact
76
78
fi
77
79
mv $1 .redact $1
78
- export ANSIBLE_VERBOSITY=$_ANSIBLE_VERBOSITY
80
+ if [ ! -z ${_ANSIBLE_VERBOSITY: +x} ]; then
81
+ export ANSIBLE_VERBOSITY=$_ANSIBLE_VERBOSITY
82
+ fi
79
83
}
80
84
81
85
function encrypt_file {
You can’t perform that action at this time.
0 commit comments