Browse Source

Spacing

tags/v0.2.0
Alexandre Anriot 6 years ago
parent
commit
455e28a128
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      _states/ufw.py

+ 7
- 7
_states/ufw.py View File

@@ -32,22 +32,22 @@ def _as_rule(method, app, interface, protocol, from_addr, from_port, to_addr, to
if app is not None:
cmd.append("from")
if from_addr is not None:
cmd.append(from_addr)
cmd.append(from_addr)
else:
cmd.append("any")
cmd.append("any")

cmd.append("to")
if to_addr is not None:
cmd.append(to_addr)
cmd.append(to_addr)
else:
cmd.append("any")
cmd.append("any")

cmd.append("app")
cmd.append(app)
elif interface is not None:
cmd.append("in")
cmd.append("on")
cmd.append(interface)
cmd.append("in")
cmd.append("on")
cmd.append(interface)
else:
if protocol is not None:
cmd.append("proto")

Loading…
Cancel
Save