Fix secret missing warning

Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
This commit is contained in:
ulyssessouza 2019-09-27 09:10:49 +02:00
parent d7c7e21921
commit eca358e2f0
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)): if not path.isfile(str(secret_file)):
log.warning( log.warning(
"Service \"{service}\" uses an undefined secret file \"{secret_file}\", " "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 service=service, secret_file=secret_file
) )
) )

View File

@ -922,6 +922,6 @@ class ProjectTest(unittest.TestCase):
get_secrets(service, [secret], secret_defs) get_secrets(service, [secret], secret_defs)
mock_log.warning.assert_called_with("Service \"{service}\" uses an undefined secret file " 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}\"" "\"{secret_file}\""
.format(service=service, secret_file=not_a_path)) .format(service=service, secret_file=not_a_path))