fix(inventory): Align versions for connections compatibility

Align the version in which backwards compatibility for the connections
parameter will be removed.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-07-11 12:06:20 +02:00
parent 8363d79ddd
commit 033f373c94

View File

@@ -423,13 +423,14 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
def connections_compatibility(self, config_data: Dict) -> None:
collection_name = "kubevirt.core"
version_removed_in = "3.0.0"
if (connections := config_data.get("connections")) is None:
return
self.display.deprecated(
msg="The 'connections' parameter is deprecated and now supports only a single list entry.",
version="2.0.0",
version=version_removed_in,
collection_name=collection_name,
)
@@ -446,7 +447,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
config_data[k] = v
self.display.deprecated(
msg="Move all of your connection parameters to the configuration top level.",
version="3.0.0",
version=version_removed_in,
collection_name=collection_name,
)
elif len(connections) > 1: