1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Change defaults result strings in ifquery check output

Ticket: CM-3810
Reviewed By:
Testing Done: tested ifquery check

defaults from /etc/network/ifupdown2/ifupdown2.conf
ifquery_check_success_str=(OK)
ifquery_check_error_str=(FAIL)
ifquery_check_unknown_str=
This commit is contained in:
Roopa Prabhu
2014-11-15 23:34:02 -08:00
parent a5bbc8ed41
commit fac4138bfe
3 changed files with 13 additions and 11 deletions

View File

@@ -1227,10 +1227,11 @@ class ifupdownMain(ifupdownBase):
separators=(',', ': '))
else:
map(lambda i: i.dump_pretty(with_status=True,
successstr=self.config.get('ifquery_check_success_str',
_success_sym),
errorstr=self.config.get('ifquery_check_error_str', _error_sym)),
ifaceobjs)
successstr=self.config.get('ifquery_check_success_str',
_success_sym),
errorstr=self.config.get('ifquery_check_error_str', _error_sym),
unknownstr=self.config.get('ifquery_check_unknown_str', '')),
ifaceobjs)
return ret
def print_ifaceobjsrunning_pretty(self, ifacenames, format='native'):