Skip to content

Commit c6d497c

Browse files
committed
test: handle braces properly
1 parent f465cfd commit c6d497c

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
@@ -275,7 +275,7 @@ def gzip_then_base64_encode(s: str) -> str:
275275
runcmd:
276276
- 'sudo echo \"pgbouncer\" \"postgres\" >> /etc/pgbouncer/userlist.txt'
277277
- 'cd /tmp && aws s3 cp --region ap-southeast-1 s3://init-scripts-staging/project/init.sh .'
278-
- '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'
278+
- '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'
279279
- 'bash init.sh "staging"'
280280
- 'touch /var/lib/init-complete'
281281
- 'rm -rf /tmp/*'

0 commit comments

Comments
 (0)