Skip to content

Commit eed2158

Browse files
committed
Fix ContainerImageRegistryCredentials for tripleo
Quote the registry username as it may not work otherwise. Add E003 to ingore list for bashate to make that indentation working. Signed-off-by: Bohdan Dobrelia <[email protected]>
1 parent 6ce0c92 commit eed2158

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ repos:
3333
rev: 2.1.1
3434
hooks:
3535
- id: bashate
36-
entry: bashate --error . --ignore=E006,E040,E043
36+
entry: bashate --error . --ignore=E006,E040,E043,E003

devsetup/scripts/tripleo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ fi
119119
if [ "\$RH_REGISTRY_USER" ] && [ -n "\$RH_REGISTRY_PWD" ]; then
120120
grep -q ContainerImageRegistryCredentials \$HOME/containers-prepare-parameters.yaml || \
121121
cat >> \$HOME/containers-prepare-parameters.yaml <<__EOF__
122-
ContainerImageRegistryCredentials:
122+
ContainerImageRegistryCredentials:
123123
registry.redhat.io:
124-
\${RH_REGISTRY_USER}: \$RH_REGISTRY_PWD
124+
'\${RH_REGISTRY_USER}': \$RH_REGISTRY_PWD
125125
__EOF__
126126
fi
127127
set -x

0 commit comments

Comments
 (0)