Remove preview status from TOML inventory (#70770)
This commit is contained in:
parent
1e3989c9f7
commit
eb06488e1d
2 changed files with 2 additions and 7 deletions
2
changelogs/fragments/toml-no-preview.yml
Normal file
2
changelogs/fragments/toml-no-preview.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- TOML inventory plugin is no longer in preview status
|
|
@ -106,11 +106,6 @@ except ImportError:
|
||||||
|
|
||||||
display = Display()
|
display = Display()
|
||||||
|
|
||||||
WARNING_MSG = (
|
|
||||||
'The TOML inventory format is marked as preview, which means that it is not guaranteed to have a backwards '
|
|
||||||
'compatible interface.'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if HAS_TOML and hasattr(toml, 'TomlEncoder'):
|
if HAS_TOML and hasattr(toml, 'TomlEncoder'):
|
||||||
class AnsibleTomlEncoder(toml.TomlEncoder):
|
class AnsibleTomlEncoder(toml.TomlEncoder):
|
||||||
|
@ -232,8 +227,6 @@ class InventoryModule(BaseFileInventoryPlugin):
|
||||||
'The TOML inventory plugin requires the python "toml" library'
|
'The TOML inventory plugin requires the python "toml" library'
|
||||||
)
|
)
|
||||||
|
|
||||||
display.warning(WARNING_MSG)
|
|
||||||
|
|
||||||
super(InventoryModule, self).parse(inventory, loader, path)
|
super(InventoryModule, self).parse(inventory, loader, path)
|
||||||
self.set_options()
|
self.set_options()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue