include machine name when generating secrets
This commit is contained in:
@@ -27,14 +27,14 @@ def check_secrets(machine: Machine, service: None | str = None) -> bool:
|
|||||||
secret_name = secret_fact["name"]
|
secret_name = secret_fact["name"]
|
||||||
if not secret_facts_store.exists(service, secret_name):
|
if not secret_facts_store.exists(service, secret_name):
|
||||||
log.info(
|
log.info(
|
||||||
f"Secret fact '{secret_fact}' for service {service} is missing."
|
f"Secret fact '{secret_fact}' for service '{service}' in machine {machine.name} is missing."
|
||||||
)
|
)
|
||||||
missing_secret_facts.append((service, secret_name))
|
missing_secret_facts.append((service, secret_name))
|
||||||
|
|
||||||
for public_fact in machine.facts_data[service]["public"]:
|
for public_fact in machine.facts_data[service]["public"]:
|
||||||
if not public_facts_store.exists(service, public_fact):
|
if not public_facts_store.exists(service, public_fact):
|
||||||
log.info(
|
log.info(
|
||||||
f"Public fact '{public_fact}' for service {service} is missing."
|
f"Public fact '{public_fact}' for service '{service}' in machine {machine.name} is missing."
|
||||||
)
|
)
|
||||||
missing_public_facts.append((service, public_fact))
|
missing_public_facts.append((service, public_fact))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user