From 0d033a1e0368c5b87b1fe70f513ed608cebcf7c4 Mon Sep 17 00:00:00 2001 From: Matt Tarkington Date: Thu, 21 Dec 2023 09:05:39 -0500 Subject: [PATCH] add if in condition --- plugins/modules/cml_lab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/cml_lab.py b/plugins/modules/cml_lab.py index edf8d95..f868cc5 100644 --- a/plugins/modules/cml_lab.py +++ b/plugins/modules/cml_lab.py @@ -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':