Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Enhance "validate" to display a "wanted / found" section #290

Open
bdlamprecht opened this issue Aug 2, 2017 · 0 comments
Open

Enhance "validate" to display a "wanted / found" section #290

bdlamprecht opened this issue Aug 2, 2017 · 0 comments

Comments

@bdlamprecht
Copy link
Contributor

Currently, in the validate section, it can be difficult to see differences between what is desired and that is the actual value.

This is to request some type of requested_value in addition to the existing actual_value in the compliance_report.

For example (using the Ansible napalm_validate module):

TASK [debug] ********************************************
ok: [btv-vba-a] => {
    "dev_validate": {
        "changed": false,
        "compliance_report": {
            "complies": false,
            "get_facts": {
                "complies": false,
                "extra": [],
                "missing": [],
                "present": {
                    "hostname": {
                        "requested_value: "foo-bar",
                        "actual_value": "btv-vba-a",
                        "complies": false,
                        "nested": false
                    }
                }
            },
            "skipped": []
        }
    }
}
@bdlamprecht bdlamprecht changed the title Enchance validate to display a "wanted / found" section Enhance validate to display a "wanted / found" section Aug 2, 2017
@bdlamprecht bdlamprecht changed the title Enhance validate to display a "wanted / found" section Enhance "validate" to display a "wanted / found" section Aug 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant