Typos
This commit is contained in:
parent
b7e3210631
commit
34b7f2ccc1
|
@ -218,7 +218,7 @@ def run_module():
|
||||||
config_file=dict(type='str', required=False),
|
config_file=dict(type='str', required=False),
|
||||||
timeout=dict(type='int', default=30),
|
timeout=dict(type='int', default=30),
|
||||||
state=dict(type='str', default='present',
|
state=dict(type='str', default='present',
|
||||||
choices=['absent', 'present', 'pause']),
|
choices=['absent', 'present', 'paused']),
|
||||||
))
|
))
|
||||||
|
|
||||||
# seed the result dict in the object
|
# seed the result dict in the object
|
||||||
|
@ -247,7 +247,7 @@ def run_module():
|
||||||
device_exists = False
|
device_exists = False
|
||||||
if 'deviceID' in device and device['deviceID'] == module.params['id']:
|
if 'deviceID' in device and device['deviceID'] == module.params['id']:
|
||||||
device_exists = True
|
device_exists = True
|
||||||
want_pause = module.params['state'] == 'pause'
|
want_pause = module.params['state'] == 'paused'
|
||||||
|
|
||||||
if module.params['state'] == 'absent':
|
if module.params['state'] == 'absent':
|
||||||
if device_exists:
|
if device_exists:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user