From f6e7d5aefd18e50b83ada84af2595427799f5cea Mon Sep 17 00:00:00 2001 From: Yiming Bao Date: Wed, 22 Jan 2025 11:16:42 +0800 Subject: [PATCH] Revise empty sdc_new_name check --- plugins/modules/sdc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/sdc.py b/plugins/modules/sdc.py index 39cb28e..0f96340 100644 --- a/plugins/modules/sdc.py +++ b/plugins/modules/sdc.py @@ -336,7 +336,7 @@ def validate_input(self, sdc_details, sdc_new_name, state, id_ip_name): LOG.error(error_msg) self.module.fail_json(msg=error_msg) - if sdc_new_name and len(sdc_new_name.strip()) == 0: + if sdc_new_name is not None and len(sdc_new_name.strip()) == 0: self.module.fail_json(msg="Provide valid SDC name to rename to.") def perform_modify(self, sdc_details, sdc_new_name, performance_profile):