1
0
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:
Roopa Prabhu
2016-03-19 19:45:33 -07:00
parent 4d2c979814
commit 3cdb161971

View File

@@ -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: