diff --git a/portainer/api.py b/portainer/api.py index 02d5053..bf1179a 100644 --- a/portainer/api.py +++ b/portainer/api.py @@ -1038,7 +1038,7 @@ class PortainerApi: if resp['Status'] == "outdated": if pull: - if service_dict[service_id] in args.excluded: + if service_dict[service_id] in self.args.excluded: continue self.restart_srv(service_id, pull) #print(f"Service {service_dict[service_id]:<{longest}} : updated")