Skip to content

Commit

Permalink
fix: Keep conninfo properties always as string (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
jegj committed Jun 3, 2022
1 parent 639197e commit d284058
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/modules/postgresql_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,7 @@ def check_subscr(self):
if subscr_info.get('subconninfo'):
for param in subscr_info['subconninfo'].split(' '):
tmp = param.split('=')
try:
self.attrs['conninfo'][tmp[0]] = int(tmp[1])
except ValueError:
self.attrs['conninfo'][tmp[0]] = tmp[1]
self.attrs['conninfo'][tmp[0]] = tmp[1]

return True

Expand Down

0 comments on commit d284058

Please sign in to comment.