We have to use a block/rescue/fail in order to correctly propagate
errors for all combinations of ansible version and platform version.
In addition, on some combinations of older ansible versions and platforms,
there is a spurious locale error message written to stdout that prevents
the from_json conversion. This will be better solved by converting
the script to a proper Ansible module.
We have to use a
block/rescue/fail
in order to correctly propagate errors for all combinations of ansible version and platform version. In addition, on some combinations of older ansible versions and platforms, there is a spurious locale error message written to stdout that prevents the from_json conversion. This will be better solved by converting the script to a proper Ansible module.Signed-off-by: Rich Megginson rmeggins@redhat.com