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

Commit

Permalink
Adding the missing code snippet from PR #161 to master
Browse files Browse the repository at this point in the history
Resolved: #204

Signed-off-by: mukultaneja <[email protected]>
  • Loading branch information
mukultaneja committed Feb 10, 2022
1 parent 36ce9b7 commit efc2ae1
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 efc2ae1

Please sign in to comment.