Merge pull request #6925 from ulyssessouza/fix-secrets-warning-message

Fix secret missing warning
This commit is contained in:
Guillaume LOURS 2019-09-27 10:51:37 +02:00 committed by GitHub
commit bc57a1bd54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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
)
)

View 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))