Skip to content

Commit 9564a3d

Browse files
committed
test: handle braces properly
1 parent f5c2c29 commit 9564a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testinfra/test_ami_nix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def gzip_then_base64_encode(s: str) -> str:
229229
runcmd:
230230
- 'sudo echo \"pgbouncer\" \"postgres\" >> /etc/pgbouncer/userlist.txt'
231231
- 'cd /tmp && aws s3 cp --region ap-southeast-1 s3://init-scripts-staging/project/init.sh .'
232-
- 'if [ "$POSTGRES_MAJOR_VERSION" = "15" ]; then echo \'{"pg_cron":"1.3.1"}\' | sudo tee /root/pg_extensions.json && sudo chmod 644 /root/pg_extensions.json; fi'
232+
- 'if [ "$POSTGRES_MAJOR_VERSION" = "15" ]; then echo \'{{"pg_cron":"1.3.1"}}\' | sudo tee /root/pg_extensions.json && sudo chmod 644 /root/pg_extensions.json; fi'
233233
- 'bash init.sh "staging"'
234234
- 'rm -rf /tmp/*'
235235
""",

0 commit comments

Comments
 (0)