fix for security group description crash (#38108)

This commit is contained in:
Zim Kalinowski 2018-05-14 13:55:25 +08:00 committed by Yunge Zhu
parent d25420bbb9
commit 5d2c23e2a3

View file

@ -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']:
changed = True
r['protocol'] = rule['protocol']