fix typo
This commit is contained in:
parent
1f06af95eb
commit
6fc62b5516
@ -104,7 +104,7 @@ def copy_secrets(apps):
|
|||||||
for s in services:
|
for s in services:
|
||||||
app_name = s.attrs['Spec']['Labels']['com.docker.stack.namespace']
|
app_name = s.attrs['Spec']['Labels']['com.docker.stack.namespace']
|
||||||
if (app_name in apps and
|
if (app_name in apps and
|
||||||
app_secs := s.attrs['Spec']['TaskTemplate']['ContainerSpec'].get('Secrets')):
|
(app_secs := s.attrs['Spec']['TaskTemplate']['ContainerSpec'].get('Secrets'))):
|
||||||
if not container_by_service.get(s.name):
|
if not container_by_service.get(s.name):
|
||||||
logging.error(
|
logging.error(
|
||||||
f"Container {s.name} is not running, secrets can not be copied.")
|
f"Container {s.name} is not running, secrets can not be copied.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user