Skip to content

Commit

Permalink
files are now given to BaselineRules class as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zivnevo committed Aug 26, 2021
1 parent bd13b98 commit 9a5c541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baseline-rules
2 changes: 1 addition & 1 deletion src/baseline_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9a5c541

Please sign in to comment.