firewall: add --sync switch to reload_firewall instead of use reload_firewall_sync
Showing
... | ... | @@ -23,5 +23,16 @@ from firewall.tasks.local_tasks import reloadtask |
class Command(BaseCommand): | ||
def add_arguments(self, parser): | ||
parser.add_argument('--sync', | ||
action='store_const', | ||
dest='sync', | ||
const=True, | ||
default=False, | ||
help='Delete poll instead of closing it') | ||
Please
register
or
sign in
to reply
|
||
def handle(self, *args, **options): | ||
reloadtask('Vlan') | ||
reloadtask('Vlan', sync=options["sync"]) |