From 9a5c5411bd70ff33f8dc5df406fcd794499b80a6 Mon Sep 17 00:00:00 2001 From: Ziv Nevo Date: Thu, 26 Aug 2021 17:48:02 +0300 Subject: [PATCH] files are now given to BaselineRules class as strings --- baseline-rules | 2 +- src/baseline_verify.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/baseline-rules b/baseline-rules index 8d92a54..c3e17a1 160000 --- a/baseline-rules +++ b/baseline-rules @@ -1 +1 @@ -Subproject commit 8d92a54ff5c597c9c7d5d1318fec6aa7e10c2dcb +Subproject commit c3e17a1abf241d5efb14f73b0dca08d0afe61f9e diff --git a/src/baseline_verify.py b/src/baseline_verify.py index b81dcd9..67b1bf4 100644 --- a/src/baseline_verify.py +++ b/src/baseline_verify.py @@ -117,7 +117,7 @@ def netpol_verify_main(args=None): """ parser = argparse.ArgumentParser(description='A verifier for K8s Network Policies') parser.add_argument('netpol_file', type=str, help='A yaml file containing k8s NetworkPolicy resources') - parser.add_argument('--baseline', '-b', type=open, metavar='FILE', action='append', required=True, + parser.add_argument('--baseline', '-b', type=str, metavar='FILE', action='append', required=True, help='A baseline-rules file') parser.add_argument('--repo', '-r', type=str, metavar='REPOSITORY', required=True, help="Repository with the app's deployments")