Browse Source

Fix new flake8 failures

Change-Id: Ieb7f80f25d7fe640caede8d8aef76950ca498723
tags/2.10.0
Daniel Watkins 3 months ago
parent
commit
c59b5a5258
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      jenkins_jobs/config.py
  2. 1
    1
      jenkins_jobs/modules/publishers.py

+ 3
- 3
jenkins_jobs/config.py View File

@@ -265,9 +265,9 @@ class JJBConfig(object):
265 265
 
266 266
         plugins_info = None
267 267
         if (config.has_option(self._section, 'query_plugins_info') and
268
-           not config.getboolean(self._section, "query_plugins_info")):
269
-                logger.debug("Skipping plugin info retrieval")
270
-                plugins_info = []
268
+                not config.getboolean(self._section, "query_plugins_info")):
269
+            logger.debug("Skipping plugin info retrieval")
270
+            plugins_info = []
271 271
         self.builder['plugins_info'] = plugins_info
272 272
 
273 273
         self.recursive = config.getboolean('job_builder', 'recursive')

+ 1
- 1
jenkins_jobs/modules/publishers.py View File

@@ -6265,7 +6265,7 @@ def conditional_publisher(registry, xml_parent, data):
6265 6265
                 # Check the length of actions list for versions prior to 0.13.
6266 6266
                 # Flexible Publish will overwrite action if more than one is
6267 6267
                 # specified.  Limit the action list to one element.
6268
-                if len(actions) is not 1:
6268
+                if len(actions) != 1:
6269 6269
                     raise JenkinsJobsException("Only one action may be "
6270 6270
                                                "specified for each condition.")
6271 6271
             for action in actions:

Loading…
Cancel
Save