Optimized warnings

This commit is contained in:
2025-07-14 11:19:29 +02:00
parent 81ef808191
commit 9dc55c5893
2 changed files with 12 additions and 15 deletions

View File

@@ -33,12 +33,12 @@ class TestDeprecatedVersionKey(unittest.TestCase):
if uses_version:
warnings.append(
f"[DEPRECATION WARNING] {role_path.name}/config/main.yml: "
f"'version' is deprecated. Replace it by docker.versions[version]."
f"'version' is deprecated. Replace it by docker.services[service].version."
)
if uses_images:
warnings.append(
f"[DEPRECATION WARNING] {role_path.name}/config/main.yml: "
f"'images' is deprecated. Replace it by docker.images[image]."
f"'images' is deprecated. Replace it by docker.services[service].image."
)
if warnings: