This commit is contained in:
2026-02-10 21:17:52 +01:00
parent 8ba22f79b9
commit f770cbc926
2 changed files with 3 additions and 1 deletions

View File

@@ -149,7 +149,7 @@ parser.add_argument("--gpu", "-g", action="store_true")
parser.add_argument("--timeout", type=int, default=10, help="Request timeout seconds") parser.add_argument("--timeout", type=int, default=10, help="Request timeout seconds")
parser.add_argument("--deploy-mode", "-m", type=str, default="git", help="Deploy mode") parser.add_argument("--deploy-mode", "-m", type=str, default="git", help="Deploy mode")
parser.add_argument("--stack-mode", "-w", default=None, help="Stack mode") parser.add_argument("--stack-mode", "-w", default=None, help="Stack mode")
parser.add_argument("--excluded", "-e", default=["portainer", "nginx"], help="Exclude from update")
args = parser.parse_args() args = parser.parse_args()
print("Running version:", VERSION) print("Running version:", VERSION)
print("Environment:", args.site) print("Environment:", args.site)

View File

@@ -1036,6 +1036,8 @@ class PortainerApi:
if resp['Status'] == "outdated": if resp['Status'] == "outdated":
if pull: if pull:
if service_dict[service_id] in args.excluded:
continue
self.restart_srv(service_id, pull) self.restart_srv(service_id, pull)
#print(f"Service {service_dict[service_id]:<{longest}} : updated") #print(f"Service {service_dict[service_id]:<{longest}} : updated")
self.gotify_message(f"Service {service_dict[service_id]} updated") self.gotify_message(f"Service {service_dict[service_id]} updated")