mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-28 10:24:39 +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:
|
def connections_compatibility(self, config_data: Dict) -> None:
|
||||||
collection_name = "kubevirt.core"
|
collection_name = "kubevirt.core"
|
||||||
|
version_removed_in = "3.0.0"
|
||||||
|
|
||||||
if (connections := config_data.get("connections")) is None:
|
if (connections := config_data.get("connections")) is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.display.deprecated(
|
self.display.deprecated(
|
||||||
msg="The 'connections' parameter is deprecated and now supports only a single list entry.",
|
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,
|
collection_name=collection_name,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -446,7 +447,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||||||
config_data[k] = v
|
config_data[k] = v
|
||||||
self.display.deprecated(
|
self.display.deprecated(
|
||||||
msg="Move all of your connection parameters to the configuration top level.",
|
msg="Move all of your connection parameters to the configuration top level.",
|
||||||
version="3.0.0",
|
version=version_removed_in,
|
||||||
collection_name=collection_name,
|
collection_name=collection_name,
|
||||||
)
|
)
|
||||||
elif len(connections) > 1:
|
elif len(connections) > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user