Merge pull request #1325 from wimnat/feature/issue-1323

Added missing else statement that caused existing rules to be discarded
reviewable/pr18780/r1
Brian Coca 9 years ago
commit fabafe9aa8

@ -219,6 +219,8 @@ def create_lifecycle_rule(connection, module):
lifecycle_obj.append(rule)
changed = True
appended = True
else:
lifecycle_obj.append(existing_rule)
# If nothing appended then append now as the rule must not exist
if not appended:
lifecycle_obj.append(rule)

Loading…
Cancel
Save