Fix nsgroup update to access the logging field safely

Change-Id: I9823cdca21f68886acf9b027398faa0cb63254b4
This commit is contained in:
Adit Sarfaty 2019-02-19 12:36:01 +02:00
parent 4b91eba9f5
commit b89a0ca744
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class NsxLibNsGroup(utils.NsxLibApiBase):
name = self.get_name(security_group)
description = security_group['description']
logging = (log_sg_allowed_traffic or
security_group[consts.LOGGING])
security_group.get(consts.LOGGING, False))
rules = self.firewall_section._process_rules_logging_for_update(
section_id, logging)
self.update(nsgroup_id, name, description)