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

pull/10963/head
James Cammarata 9 years ago
parent dd7a641e76
commit 8db21f99b7

@ -93,6 +93,7 @@ class AdHocCLI(CLI):
variable_manager = VariableManager()
inventory = Inventory(loader=loader, variable_manager=variable_manager, host_list=self.options.inventory)
variable_manager.set_inventory(inventory)
hosts = inventory.list_hosts(pattern)
if len(hosts) == 0:

Loading…
Cancel
Save