Skip to content

Commit b1044d3

Browse files
authored
Merge pull request #52 from galaxyproject/nsoranzo-patch-1
Escape initial ``-`` when passing ``postgresql_backup_rsync_backup_opts``
2 parents f23cb7a + 9d7f58c commit b1044d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ __postgresql_pgdg_bin_dir: "{{ '/usr/pgsql-' ~ (postgresql_version | replace('.'
3333
postgresql_backup_command: >-
3434
{{ postgresql_backup_local_dir | quote }}/bin/backup.py
3535
{{ '--rsync-connect-opts ' ~ (postgresql_backup_rsync_connect_opts | quote) if postgresql_backup_rsync_connect_opts else '' }}
36-
--rsync-backup-opts {{ postgresql_backup_rsync_backup_opts | quote }}
36+
--rsync-backup-opts {{ postgresql_backup_rsync_backup_opts | regex_replace('^-', '\-') | quote }}
3737
--keep {{ postgresql_backup_keep | quote }}
3838
{{ '--pg-bin-dir ' ~ __postgresql_pgdg_bin_dir if ansible_os_family == 'RedHat' else '' }}
3939
--backup --clean-archive {{ postgresql_backup_dir | quote }}

0 commit comments

Comments
 (0)