Commit b03a49d5 authored by jacomme's avatar jacomme
Browse files

force option

parent f1ea7f35
......@@ -636,12 +636,12 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true")
parser.add_argument("-e", "--export", help="export le contenu du parefeu", action="store_true")
parser.add_argument("action", help="Mode reconnus : start, stop ou restart", default="restart")
parser.add_argument("action", help="Mode reconnus : start, stop ou restart", default="restart", nargs="?")
parser.add_argument("--force", help="Force l'action", action="store_true")
args = parser.parse_args()
for arg in sys.argv:
if arg=="--force":
run(args)
if args.force:
run(args)
for service in api_client.list("services/regen/"):
if service['hostname'] == client_hostname and \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment