Skip to content

Commit

Permalink
Merge pull request #75 from dell/usr/baoy1/bugfix_empty_sdc_name
Browse files Browse the repository at this point in the history
Revise empty sdc_new_name check
  • Loading branch information
baoy1 authored Jan 23, 2025
2 parents 8c5aca2 + f6e7d5a commit 732991c
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 732991c

Please sign in to comment.