Skip to content

Commit

Permalink
Revert "fix: Keep conninfo properties always as string (ansible-colle…
Browse files Browse the repository at this point in the history
…ctions#280)"

This reverts commit d284058.
  • Loading branch information
jegj committed Jun 6, 2022
1 parent d284058 commit 2f72531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/modules/postgresql_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ def check_subscr(self):
if subscr_info.get('subconninfo'):
for param in subscr_info['subconninfo'].split(' '):
tmp = param.split('=')
self.attrs['conninfo'][tmp[0]] = tmp[1]
try:
self.attrs['conninfo'][tmp[0]] = int(tmp[1])
except ValueError:
self.attrs['conninfo'][tmp[0]] = tmp[1]

return True

Expand Down

0 comments on commit 2f72531

Please sign in to comment.