mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
build
This commit is contained in:
21
portainer.py
21
portainer.py
@@ -109,6 +109,13 @@ parser.add_argument(
|
||||
default=None,
|
||||
help="Endpoint ID to limit stack operations",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--service-id",
|
||||
"-i",
|
||||
type=str,
|
||||
default=None,
|
||||
help="Service ID to limit service operations",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--refresh-environment", "-R", action="store_true", help="List endpoints"
|
||||
)
|
||||
@@ -393,6 +400,7 @@ if __name__ == "__main__":
|
||||
("stop_stack","stop_stack"),
|
||||
("start_stack","start_stack"),
|
||||
("restart_service","restart_service"),
|
||||
("update_service","update_service"),
|
||||
("list_stacks","list_stacks"),
|
||||
("update_stack","update_stack"),
|
||||
("secrets","secrets"),
|
||||
@@ -538,7 +546,18 @@ if __name__ == "__main__":
|
||||
)
|
||||
por.restart_service(args.endpoint_id, "lala")
|
||||
sys.exit()
|
||||
|
||||
|
||||
if args.action == "update_service":
|
||||
args = prompt_missing_args(
|
||||
args,
|
||||
cur_config,
|
||||
[
|
||||
("site", "Site"),
|
||||
("endpoint_id", "Endpoint ID")
|
||||
],
|
||||
)
|
||||
por.update_service(args.endpoint_id, args.service_id)
|
||||
sys.exit()
|
||||
if args.action == "list_stacks":
|
||||
args = prompt_missing_args(
|
||||
args,
|
||||
|
||||
Reference in New Issue
Block a user