Merge "Avoid extra XML elements in views"

This commit is contained in:
Zuul 2018-08-14 05:11:05 +00:00 committed by Gerrit Code Review
commit aca0af0dd8
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ class XmlGenerator(object):
Mod = ep.load()
mod = Mod(self.registry)
xml = mod.root_xml(data)
self._gen_xml(xml, data)
if "view-type" not in data:
self._gen_xml(xml, data)
obj = XmlJob(xml, data['name'])
return obj