diff --git a/module_utils/gateway_nat_rule_service.py b/module_utils/gateway_nat_rule_service.py index aa2f069..8b13ed4 100644 --- a/module_utils/gateway_nat_rule_service.py +++ b/module_utils/gateway_nat_rule_service.py @@ -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)