Skip to content

Commit

Permalink
Revise empty sdc_new_name check
Browse files Browse the repository at this point in the history
  • Loading branch information
baoy1 committed Jan 22, 2025
1 parent 8c5aca2 commit f6e7d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/sdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f6e7d5a

Please sign in to comment.