mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
redhat_subscription: Fix usage of ConfigParser (#54815)
This commit is contained in:
committed by
Martin Krizek
parent
0a0a2e47e0
commit
09f68fc659
@@ -260,9 +260,9 @@ class RegistrationBase(object):
|
||||
cfg.read([tmpfile])
|
||||
|
||||
if enabled:
|
||||
cfg.set('main', 'enabled', 1)
|
||||
cfg.set('main', 'enabled', '1')
|
||||
else:
|
||||
cfg.set('main', 'enabled', 0)
|
||||
cfg.set('main', 'enabled', '0')
|
||||
|
||||
fd = open(tmpfile, 'w+')
|
||||
cfg.write(fd)
|
||||
|
||||
Reference in New Issue
Block a user