summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/project_folder.py
diff options
context:
space:
mode:
Diffstat (limited to 'jenkins_jobs/modules/project_folder.py')
-rw-r--r--jenkins_jobs/modules/project_folder.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/jenkins_jobs/modules/project_folder.py b/jenkins_jobs/modules/project_folder.py
index a16a1215..b88db566 100644
--- a/jenkins_jobs/modules/project_folder.py
+++ b/jenkins_jobs/modules/project_folder.py
@@ -43,19 +43,18 @@ class Folder(jenkins_jobs.modules.base.Base):
sequence = 0
def root_xml(self, data):
- xml_parent = XML.Element('com.cloudbees.hudson.plugins.folder.Folder',
- plugin="cloudbees-folder")
- attributes = {"class": "com.cloudbees.hudson.plugins.folder."
- "icons.StockFolderIcon"}
- XML.SubElement(xml_parent, 'icon', attrib=attributes)
- XML.SubElement(xml_parent, 'views')
+ xml_parent = XML.Element(
+ "com.cloudbees.hudson.plugins.folder.Folder", plugin="cloudbees-folder"
+ )
+ attributes = {
+ "class": "com.cloudbees.hudson.plugins.folder." "icons.StockFolderIcon"
+ }
+ XML.SubElement(xml_parent, "icon", attrib=attributes)
+ XML.SubElement(xml_parent, "views")
attributes = {"class": "hudson.views.DefaultViewsTabBar"}
- XML.SubElement(xml_parent, 'viewsTabBar', attrib=attributes)
+ XML.SubElement(xml_parent, "viewsTabBar", attrib=attributes)
- mappings = [
- ('', 'primaryView', 'All'),
- ('', 'healthMetrics', ''),
- ]
+ mappings = [("", "primaryView", "All"), ("", "healthMetrics", "")]
convert_mapping_to_xml(xml_parent, data, mappings, True)
return xml_parent