mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user