Fix typo on curl that will get Vault passwords in Infra command
This commit is contained in:
parent
0186421fc6
commit
96193196cc
@ -33,7 +33,7 @@ wx-infra(){
|
|||||||
curl \
|
curl \
|
||||||
-H "X-Vault-Token: ${config["login",$ORG]}" \
|
-H "X-Vault-Token: ${config["login",$ORG]}" \
|
||||||
-X GET \
|
-X GET \
|
||||||
https://$VAULT_DOMAIN/v1/cli/data/cwchristerw/settings/infra -s | jq -r '.data.data.warenroup' > "$INFRA_PATH/vault/warengroup"
|
https://$VAULT_DOMAIN/v1/cli/data/cwchristerw/settings/infra -s | jq -r '.data.data.warengroup' > "$INFRA_PATH/vault/warengroup"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $1 ]]
|
if [[ -z $1 ]]
|
||||||
|
2
wx
2
wx
@ -166,7 +166,7 @@ wx-infra(){
|
|||||||
curl \
|
curl \
|
||||||
-H "X-Vault-Token: ${config["login",$ORG]}" \
|
-H "X-Vault-Token: ${config["login",$ORG]}" \
|
||||||
-X GET \
|
-X GET \
|
||||||
https://$VAULT_DOMAIN/v1/cli/data/cwchristerw/settings/infra -s | jq -r '.data.data.warenroup' > "$INFRA_PATH/vault/warengroup"
|
https://$VAULT_DOMAIN/v1/cli/data/cwchristerw/settings/infra -s | jq -r '.data.data.warengroup' > "$INFRA_PATH/vault/warengroup"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $1 ]]
|
if [[ -z $1 ]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user