mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
ifupdownmain: sending ifaceobj to syntax_check method
Ticket: None Reviewed By: Roopa, Nikhil G Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@@ -1088,7 +1088,7 @@ class ifupdownMain(ifupdownBase):
|
||||
module._modinfo.get('attrs', {})):
|
||||
result = False
|
||||
if hasattr(module, 'syntax_check') and callable(module.syntax_check):
|
||||
if not module.syntax_check(self.get_ifaceobjs(ifacename)):
|
||||
if not module.syntax_check(self.get_ifaceobjs(ifacename)[0]):
|
||||
result = False
|
||||
except Exception, e:
|
||||
self.logger.warn('%s: %s' % (ifacename, str(e)))
|
||||
|
||||
Reference in New Issue
Block a user