Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #206 from vmware/missing-code-from-pr-#161
Browse files Browse the repository at this point in the history
Adding the missing code snippet from PR #161 to master
  • Loading branch information
mukultaneja authored Feb 10, 2022
2 parents 36ce9b7 + efc2ae1 commit 6403bf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module_utils/gateway_nat_rule_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def get_nat_rules(self):
nat_rule_info['ID'] = int(nat_rule.ruleId)
nat_rule_info['Action'] = str(nat_rule.action)
nat_rule_info['Enabled'] = str(nat_rule.enabled)
if hasattr(nat_rule, 'description'):
nat_rule_info['Description'] = str(nat_rule.description)
nat_rule_info['href'] = self.get_nat_rule_href(
nat_rule_info['ID'])
response['msg'].append(nat_rule_info)
Expand Down

0 comments on commit 6403bf6

Please sign in to comment.