udica/0006-Fix-several-lint-findings.patch
Vit Mojzis 4a53696b71 udica-0.2.7-5
- Show diff when checking formatting
- Fix several lint findings
- Fix generating policy for Crio mounts

Fixes:
  https://github.com/containers/udica/issues/118
2023-04-20 17:25:50 +02:00

39 lines
882 B
Diff

From 5d6feb3a6c900d119732a20145352b2459fafcde Mon Sep 17 00:00:00 2001
From: Chris Evich <cevich@redhat.com>
Date: Wed, 29 Mar 2023 15:34:13 -0400
Subject: [PATCH] Fix several lint findings
Signed-off-by: Chris Evich <cevich@redhat.com>
---
udica/__main__.py | 1 -
udica/policy.py | 1 -
2 files changed, 2 deletions(-)
diff --git a/udica/__main__.py b/udica/__main__.py
index 103ddc2..43d2e43 100644
--- a/udica/__main__.py
+++ b/udica/__main__.py
@@ -140,7 +140,6 @@ def get_args():
def main():
-
opts = get_args()
if opts["ContainerID"]:
diff --git a/udica/policy.py b/udica/policy.py
index 9069c97..e32b077 100644
--- a/udica/policy.py
+++ b/udica/policy.py
@@ -88,7 +88,6 @@ def list_contexts(directory):
def list_ports(port_number, port_proto):
-
handle = semanage.semanage_handle_create()
semanage.semanage_connect(handle)
--
2.37.3