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):