Skip to content

Commit

Permalink
Fix vcenter_gather_moids module
Browse files Browse the repository at this point in the history
  • Loading branch information
jpiron committed Nov 3, 2020
1 parent 4ec9203 commit df01c15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/vcenter_gather_moids.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def main():

for searched_parameter in searched_parameters:
if searched_parameter == 'cluster_name' and module.params[searched_parameter]:
object_mo = find_cluster_by_name_datacenter(datacenter_mo, module.params[searched_parameter])
object_mo = find_cluster_by_name(content, module.params[searched_parameter], datacenter_mo)
elif searched_parameter and module.params[searched_parameter]:
object_mo = get_mo(content, module.params[searched_parameter], VIM_TYPES[searched_parameter])

Expand All @@ -95,4 +95,3 @@ def main():

if __name__ == '__main__':
main()

0 comments on commit df01c15

Please sign in to comment.