New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for security group description crash #38108
Conversation
resolves #37658 |
Fixes #37658 |
shipit |
LGTM |
@jborean93 could you check this? |
@@ -400,7 +400,7 @@ def compare_rules(r, rule): | |||
matched = True | |||
if rule.get('description', None) != r['description']: | |||
changed = True | |||
r['description'] = rule['description'] | |||
r['description'] = rule.get('description', None) | |||
if rule['protocol'] != r['protocol']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will make the protocol
also positional args?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any other parameter need same fix so that user will be able to update security group eventually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other params will be always there afaik
SUMMARY
Fixes a crash when existing description is not empty, and description not specified in task.
ISSUE TYPE
COMPONENT NAME
azure_rm_securitygroup
ANSIBLE VERSION
2.5
ADDITIONAL INFORMATION