Skip to content
Snippets Groups Projects
Commit 2a68b326 authored by Jonah Husson's avatar Jonah Husson
Browse files

Update docstring on revoke_auth to match use

parent cf00a61b
No related branches found
No related tags found
1 merge request!9Remove truncate and add on conflict clause instead
...@@ -225,8 +225,8 @@ def get_substrate_provider(): ...@@ -225,8 +225,8 @@ def get_substrate_provider():
def revoke_auth(to_revoke): def revoke_auth(to_revoke):
""" """
revoke_auth accepts a list of node IDs to revoke auth from revoke_auth accepts a list of node IP addresses to revoke auth from
:param to_revoke: list of node IDs :param to_revoke: list of node IP addresses
""" """
for nid in to_revoke: for nid in to_revoke:
cmd = f"sudo nft -a list chain inet filter input | grep '{nid}' | awk -F'handle ' '{{print $2}}' | xargs -Ixxx sudo nft delete rule inet filter input handle xxx" cmd = f"sudo nft -a list chain inet filter input | grep '{nid}' | awk -F'handle ' '{{print $2}}' | xargs -Ixxx sudo nft delete rule inet filter input handle xxx"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment