Commit 8db21f99 by James Cammarata

Set the inventory on the variable manager for the adhoc cli usage (v2)

parent dd7a641e
...@@ -93,6 +93,7 @@ class AdHocCLI(CLI): ...@@ -93,6 +93,7 @@ class AdHocCLI(CLI):
variable_manager = VariableManager() variable_manager = VariableManager()
inventory = Inventory(loader=loader, variable_manager=variable_manager, host_list=self.options.inventory) inventory = Inventory(loader=loader, variable_manager=variable_manager, host_list=self.options.inventory)
variable_manager.set_inventory(inventory)
hosts = inventory.list_hosts(pattern) hosts = inventory.list_hosts(pattern)
if len(hosts) == 0: if len(hosts) == 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment