network/library
Thomas Haller 068db05080 library: fix handling of "changed" flag
run() supports a --check mode (DRY_RUN) and a real mode,
where the real mode consists of a PRE_RUN that only simulates
the steps and a REAL_RUN.

Actualy changes can only happen during REAL_RUN (and we pretend
that they happen during DRY_RUN).

Fix handling of the change flag, is was broken previously.

Also, we need to set the is-changed flag to True before actually
invoking the action. Because, if we fail, we might fail_json()
right away, and need to correct changed flag.
2018-01-22 10:33:45 +01:00
..
network_connections.py library: fix handling of "changed" flag 2018-01-22 10:33:45 +01:00
test_network_connections.py library: inject ArgsValidator instance instead of using instance in AnsibleUtil 2018-01-22 10:33:44 +01:00