mirror of https://github.com/docker/compose.git
Merge pull request #6925 from ulyssessouza/fix-secrets-warning-message
Fix secret missing warning
This commit is contained in:
commit
bc57a1bd54
|
@ -812,7 +812,7 @@ def get_secrets(service, service_secrets, secret_defs):
|
|||
if not path.isfile(str(secret_file)):
|
||||
log.warning(
|
||||
"Service \"{service}\" uses an undefined secret file \"{secret_file}\", "
|
||||
"the following folder is created \"{secret_file}\"".format(
|
||||
"the following file should be created \"{secret_file}\"".format(
|
||||
service=service, secret_file=secret_file
|
||||
)
|
||||
)
|
||||
|
|
|
@ -922,6 +922,6 @@ class ProjectTest(unittest.TestCase):
|
|||
get_secrets(service, [secret], secret_defs)
|
||||
|
||||
mock_log.warning.assert_called_with("Service \"{service}\" uses an undefined secret file "
|
||||
"\"{secret_file}\", the following folder is created "
|
||||
"\"{secret_file}\", the following file should be created "
|
||||
"\"{secret_file}\""
|
||||
.format(service=service, secret_file=not_a_path))
|
||||
|
|
Loading…
Reference in New Issue