Skip to content

Commit

Permalink
Fix problems detected by pylint execution
Browse files Browse the repository at this point in the history
  • Loading branch information
meaksh committed Jul 18, 2024
1 parent 691d013 commit 688c961
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/spacewalk/server/importlib/backendOracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,5 +771,7 @@ def init(self):
def SQLBackend():
if CFG.DB_BACKEND == POSTGRESQL:
backend = PostgresqlBackend()
backend.init()
return backend
backend.init()
return backend
else:
raise Exception("The selected DB_BACKEND is not supported")
1 change: 1 addition & 0 deletions python/spacewalk/server/importlib/packageImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def _processPackage(self, package):
self.checksums[fchecksumTuple] = None

# Check whether package is a PTF or part of PTF
# pylint: disable-next=consider-iterating-dictionary
for cap in self.capabilities.keys():
if cap[0] == "ptf()":
package["is_ptf"] = True
Expand Down

0 comments on commit 688c961

Please sign in to comment.