Use _savedeployconf

This commit is contained in:
Sergey Pashinin 2020-11-02 16:46:09 +03:00
parent 9fcd104065
commit e203e98375
No known key found for this signature in database
GPG Key ID: 3C0D84EA2D933E47

View File

@ -36,12 +36,14 @@ vault_deploy() {
_err "VAULT_PREFIX needs to be defined (contains prefix path in vault)"
return 1
fi
_savedeployconf VAULT_PREFIX "$VAULT_PREFIX"
_getdeployconf VAULT_ADDR
if [ -z "$VAULT_ADDR" ]; then
_err "VAULT_ADDR needs to be defined (contains vault connection address)"
return 1
fi
_savedeployconf VAULT_ADDR "$VAULT_ADDR"
# JSON does not allow multiline strings.
# So replacing new-lines with "\n" here