Skip to content

Commit

Permalink
fixes for firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Nardecchia authored and Alessandro Nardecchia committed May 10, 2024
1 parent 36a646f commit 2933004
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 1 addition & 7 deletions imageroot/actions/create-module/90set_firewall
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#!/usr/bin/env python3

import os
import agent

# add all the exposed tcp ports
agent.add_public_service(
os.environ['MODULE_ID'],
["%s/tcp" % (port) for port in os.environ["TCP_PORTS"].split(",")]
)
import agent
5 changes: 0 additions & 5 deletions imageroot/actions/destroy-module/90firewall
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
import os
import agent


# remove all the exposed tcp ports
agent.remove_public_service(
os.environ['MODULE_ID']
)

0 comments on commit 2933004

Please sign in to comment.