mirror of
https://github.com/KrystianD/mikrotik_configurator.git
synced 2025-06-21 10:08:15 +02:00
host info for reset
This commit is contained in:
parent
6e1c392ebd
commit
488e30e62c
@ -176,7 +176,9 @@ def cmd_apply(args, cfg):
|
|||||||
script = generate(args, cfg, files)
|
script = generate(args, cfg, files)
|
||||||
|
|
||||||
if not dry_run and args.reset:
|
if not dry_run and args.reset:
|
||||||
if not query_yes_no("Are you sure you want to reset configuration?", "no"):
|
host, ssh_port = get_ssh_host_port(args, cfg)
|
||||||
|
|
||||||
|
if not query_yes_no(f"Are you sure you want to reset configuration ({host}:{ssh_port})?", "no"):
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
for index, line in enumerate(script.splitlines(), start=1):
|
for index, line in enumerate(script.splitlines(), start=1):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user