How to use the debops.find_inventorypath function in debops

To help you get started, we’ve selected a few debops examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github debops / debops-tools / debops / cmds / __init__.py View on Github external
def find_inventorypath(project_root, required=True):
    inventory = _find_inventorypath(project_root)
    if required and not inventory:
        error_msg("Ansible inventory not found")
    return inventory