Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Jan 8, 2025
1 parent 65d1614 commit 696bfa4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/doc_fragments/plugin_base_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ModuleDocFragment(object):
properties:
description:
- Specify a list of VMware schema properties associated with the host to collect and return as hostvars.
- Each value in the list can be a path to a specific property in ware object or a path to a collection of properties.
- Each value in the list can be a path to a specific property in a VMware object or a path to a collection of properties.
- Please make sure that if you use a property in another parameter that it is included in this option.
- Some properties are always returned, such as name, customValue, and summary.runtime.powerState
- Use V(all) to return all properties available for the VMware object.
Expand Down
2 changes: 1 addition & 1 deletion plugins/inventory/vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
- guest.net
# Group hosts using Jinja2 conditionals
plugin: vnware,vnware,vms
plugin: vmware.vmware.vms
properties:
- 'config.datastoreUrl'
groups:
Expand Down
6 changes: 3 additions & 3 deletions plugins/inventory_utils/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def set_host_variables_from_host_properties(self, vmware_host_object):
for k, v in vmware_host_object.properties.items():
self.inventory.set_variable(vmware_host_object.inventory_hostname, k, v)

Check warning on line 296 in plugins/inventory_utils/_base.py

View check run for this annotation

Codecov / codecov/patch

plugins/inventory_utils/_base.py#L296

Added line #L296 was not covered by tests

def add_host_to_groups_based_on_path(self, vmwre_host_object):
def add_host_to_groups_based_on_path(self, vmware_host_object):
"""
If the user desires, create groups based on each VM's path. A group is created for each
step down in the path, with the group from the step above containing subsequent groups.
Expand All @@ -305,7 +305,7 @@ def add_host_to_groups_based_on_path(self, vmwre_host_object):
if not self.get_option("group_by_paths"):
return

Check warning on line 306 in plugins/inventory_utils/_base.py

View check run for this annotation

Codecov / codecov/patch

plugins/inventory_utils/_base.py#L306

Added line #L306 was not covered by tests

path_parts = vmwre_host_object.path.split('/')
path_parts = vmware_host_object.path.split('/')
group_name_parts = []
last_created_group = None

Check warning on line 310 in plugins/inventory_utils/_base.py

View check run for this annotation

Codecov / codecov/patch

plugins/inventory_utils/_base.py#L308-L310

Added lines #L308 - L310 were not covered by tests

Expand All @@ -324,4 +324,4 @@ def add_host_to_groups_based_on_path(self, vmwre_host_object):
last_created_group = group

Check warning on line 324 in plugins/inventory_utils/_base.py

View check run for this annotation

Codecov / codecov/patch

plugins/inventory_utils/_base.py#L323-L324

Added lines #L323 - L324 were not covered by tests

if last_created_group:
self.inventory.add_host(vmwre_host_object.inventory_hostname, last_created_group)
self.inventory.add_host(vmware_host_object.inventory_hostname, last_created_group)

Check warning on line 327 in plugins/inventory_utils/_base.py

View check run for this annotation

Codecov / codecov/patch

plugins/inventory_utils/_base.py#L327

Added line #L327 was not covered by tests

0 comments on commit 696bfa4

Please sign in to comment.