Skip to content

Commit

Permalink
add if in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mtarking committed Dec 21, 2023
1 parent 9ccc0e6 commit 0d033a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/cml_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def run_module():
lab.start(wait=cml.params['wait'])
lab.title = cml.params['lab']
cml.result['changed'] = True
elif lab.state() == "STOPPED":
elif lab.state() in ("DEFINED_ON_CORE", "STOPPED"):
lab.start(wait=cml.params['wait'])
cml.result['changed'] = True
elif cml.params['state'] == 'absent':
Expand Down

0 comments on commit 0d033a1

Please sign in to comment.