cleanup(inventory): Mark methods as private

Mark all methods of the inventory which should be private with a underscore
prefix in their name.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-07-11 16:03:27 +02:00
parent 54bbdb4d73
commit 9029574f7c
16 changed files with 179 additions and 170 deletions

View File

@@ -69,7 +69,7 @@ WINDOWS_VMI_4 = merge_dicts(
],
)
def test_ansible_connection_winrm(inventory, hosts, vmi, expected):
inventory.populate_inventory(
inventory._populate_inventory(
{
"default_hostname": "test",
"cluster_domain": "test.com",

View File

@@ -45,7 +45,7 @@ def test_set_composable_vars(
"keyed_groups": [{"prefix": "fedora", "key": "vmi_guest_os_info.versionId"}],
"strict": True,
}
inventory.populate_inventory(
inventory._populate_inventory(
{
"default_hostname": "test",
"cluster_domain": "test.com",

View File

@@ -44,7 +44,7 @@ VMI1 = {
def test_stopped_vm(inventory, hosts):
inventory.populate_inventory(
inventory._populate_inventory(
{
"default_hostname": "test",
"cluster_domain": "test.com",