This commit is contained in:
Peter Šurda 2024-04-22 22:54:40 +08:00
parent b7e3210631
commit 34b7f2ccc1
Signed by untrusted user: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -218,7 +218,7 @@ def run_module():
config_file=dict(type='str', required=False),
timeout=dict(type='int', default=30),
state=dict(type='str', default='present',
choices=['absent', 'present', 'pause']),
choices=['absent', 'present', 'paused']),
))
# seed the result dict in the object
@ -247,7 +247,7 @@ def run_module():
device_exists = False
if 'deviceID' in device and device['deviceID'] == module.params['id']:
device_exists = True
want_pause = module.params['state'] == 'pause'
want_pause = module.params['state'] == 'paused'
if module.params['state'] == 'absent':
if device_exists: