def get_inventory():
    try:
        inventory_string = di.main({'config': TARGET_DIR})
        inventory = json.loads(inventory_string)
        return inventory
    finally:
        # Remove the file system artifacts since we want to force fresh runs
        cleanup()
Return the inventory mapping in a dict.
dataset/ETHPy150Open openstack/openstack-ansible/tests/test_inventory.py/get_inventory