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

if app is not None: if app is not None:
cmd.append("from") cmd.append("from")
if from_addr is not None: if from_addr is not None:
cmd.append(from_addr)
cmd.append(from_addr)
else: else:
cmd.append("any")
cmd.append("any")


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


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

Loading…
Cancel
Save