mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
networkinterfaces: don't warn if sourced lines contain globs
Ticket: CM-9908 Reviewed By: julien Testing Done: tested sourcing files with globs and non-globs warn if sourced line has a glob ('*')
This commit is contained in:
@@ -154,7 +154,8 @@ class networkInterfaces():
|
||||
if sourced_file:
|
||||
filenames = glob.glob(sourced_file)
|
||||
if not filenames:
|
||||
self._parse_warn(self._currentfile, lineno,
|
||||
if '*' not in sourced_file:
|
||||
self._parse_warn(self._currentfile, lineno,
|
||||
'cannot find source file %s' %sourced_file)
|
||||
return 0
|
||||
for f in filenames:
|
||||
|
Reference in New Issue
Block a user