mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-16 19:30:00 +01:00
build
This commit is contained in:
21
portainer.py
21
portainer.py
@@ -475,8 +475,8 @@ if __name__ == "__main__":
|
||||
|
||||
if args.action == "create_stack":
|
||||
por.action = "create_stack"
|
||||
print(cur_config)
|
||||
print(args)
|
||||
#print(cur_config)
|
||||
#print(args)
|
||||
args = prompt_missing_args(
|
||||
args,
|
||||
cur_config,
|
||||
@@ -538,9 +538,6 @@ if __name__ == "__main__":
|
||||
sys.exit()
|
||||
|
||||
if args.action == "update_service":
|
||||
|
||||
|
||||
|
||||
args = prompt_missing_args(
|
||||
args,
|
||||
cur_config,
|
||||
@@ -585,11 +582,19 @@ if __name__ == "__main__":
|
||||
print(por.get_containers())
|
||||
sys.exit()
|
||||
|
||||
|
||||
if args.action == "update_stack":
|
||||
print("Updating stacks")
|
||||
por.update_stack(args.endpoint_id, args.stack, args.autostart)
|
||||
args = prompt_missing_args(
|
||||
args,
|
||||
cur_config,
|
||||
[
|
||||
("site", "Site"),
|
||||
("endpoint_id", "Endpoint ID")
|
||||
],
|
||||
)
|
||||
|
||||
por.update_stack(args)
|
||||
sys.exit()
|
||||
|
||||
if args.action == "print_all_data":
|
||||
print(json.dumps(por.all_data, indent=2))
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user