Skip to content

Commit

Permalink
Fix reading of stdin (changed in Python 3.x).
Browse files Browse the repository at this point in the history
Also removed the DUMMY file.
  • Loading branch information
Arik Kfir committed Nov 28, 2017
1 parent d38084e commit 9cfe701
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file removed DUMMY
Empty file.
2 changes: 1 addition & 1 deletion update_ingresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def main():
# read JSON from stdin
context = json.loads('\n'.join(sys.stdin.readlines()))
context = json.loads(sys.stdin.read())

# iterate ingresses, and for each one, construct the list of whitelisted CIDRs (from its whitelisted networks)
# then annotate the ingress to whitelist only the CIDRs collected from those whitelisted networks
Expand Down

0 comments on commit 9cfe701

Please sign in to comment.