From 585b9e80a3ed30159a6ad36da41ace5fabf1e09e Mon Sep 17 00:00:00 2001 From: Matt Tarkington Date: Thu, 21 Dec 2023 09:10:23 -0500 Subject: [PATCH] add if in condition for starting lab --- 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':