Skip to content
Snippets Groups Projects
Commit 08707e18 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix log

parent c345d51e
No related branches found
No related tags found
1 merge request!9Remove truncate and add on conflict clause instead
......@@ -231,7 +231,7 @@ def revoke_auth(to_revoke):
log.info(f"Revoking access to {len(to_revoke)} nodes...")
for node_ip in to_revoke:
cmd = f"sudo nft -a list chain inet filter input | grep '{node_ip}' | awk -F'handle ' '{{print $2}}' | xargs -Ixxx sudo nft delete rule inet filter input handle xxx"
log.debug(cmd)
log.info(f"Running revoke command: {cmd}")
p = subprocess.Popen(cmd.split())
output, error = p.communicate()
if output:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment