Openstack CLI utilities can return warning messages while
run to stderr. It's a normal behavior for Openstack CLI.
But Puppet mixs stderr and stdout for commands.
For preventing parsing warning messages,
I propose got response from Neutron CLI as JSON if it required
and parse it by ruby JSON parser.
JSON is a more usable format for interprocess communication,
than plain-text or CSV.
Reviewed: https:/ /review. fuel-infra. org/14798
Submitter: Ivan Berezovskiy <email address hidden>
Branch: mos-8.0
Commit: 03c382df6a78827 1ea3c928d506cef dcff54576c
Author: Sergey Vasilenko <email address hidden>
Date: Thu Dec 17 16:41:02 2015
Use json output instead plain-text
Openstack CLI utilities can return warning messages while
run to stderr. It's a normal behavior for Openstack CLI.
But Puppet mixs stderr and stdout for commands.
For preventing parsing warning messages,
I propose got response from Neutron CLI as JSON if it required
and parse it by ruby JSON parser.
JSON is a more usable format for interprocess communication,
than plain-text or CSV.
Change-Id: Ibc1105bc119272 715fa211ac129a3 66fe50cbf47
Closes-bug: #1508511
Related-bug: #1526772