Ignore view update if not specified
Similar to job updates when passing a specific job name in the CLI, views should also be ignored if they were not explicitly specified. Change-Id: I77488b0af453964f77bc8d565d43f404327ef139 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
This commit is contained in:
parent
1e24fceea1
commit
c5013b61d6
@ -249,6 +249,11 @@ class YamlParser(object):
|
||||
|
||||
for view in self.data.get('view', {}).values():
|
||||
view['name'] = self._getfullname(view)
|
||||
|
||||
if jobs_glob and not matches(view['name'], jobs_glob):
|
||||
logger.debug("Ignoring view {0}".format(view['name']))
|
||||
continue
|
||||
|
||||
logger.debug("Expanding view '{0}'".format(view['name']))
|
||||
self._formatDescription(view)
|
||||
self.views.append(view)
|
||||
|
Loading…
x
Reference in New Issue
Block a user