vars/fix: mention machine in error message for fix

This commit is contained in:
DavHau
2024-12-19 17:39:02 +07:00
parent 3db338342d
commit ad9fde4b41

View File

@@ -127,7 +127,7 @@ class SecretStore(StoreBase):
if outdated: if outdated:
msg = ( msg = (
"The local state of some secret vars is inconsistent and needs to be updated.\n" "The local state of some secret vars is inconsistent and needs to be updated.\n"
"Run 'clan vars fix' to apply the necessary changes." f"Run 'clan vars fix {self.machine.name}' to apply the necessary changes."
"Problems to fix:\n" "Problems to fix:\n"
"\n".join(o[2] for o in outdated if o[2]) "\n".join(o[2] for o in outdated if o[2])
) )