mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Correct error message for unsupported ifupdown2 attributes
Ticket: CM-5349 Reviewed By: Trivial Testing Done: Tested on cel box Corrected a minor error in how we handle unsupported config attributes. Instead of error: not enough arguments for format string we will now print this: warning: peerlink.4000: unsupported attribute 'clagd-foobar' (cherry picked from commit 44c6004a33d59ee234f8ee3d5f450e158c9e5bdc)
This commit is contained in:
@@ -534,7 +534,8 @@ class ifupdownMain(ifupdownBase):
|
||||
break
|
||||
if not found:
|
||||
err = True
|
||||
self.logger.warn('%s: unsupported attribute \'%s\'' %attrname)
|
||||
self.logger.warn('%s: unsupported attribute \'%s\'' \
|
||||
% (ifaceobj.name, attrname))
|
||||
continue
|
||||
return err
|
||||
|
||||
|
Reference in New Issue
Block a user