Reviewed: https://review.opendev.org/c/openstack/os-net-config/+/843385 Committed: https://opendev.org/openstack/os-net-config/commit/357c19afd5ef774f2488c152f3c42ae1346fa372 Submitter: "Zuul (22348)" Branch: stable/train
commit 357c19afd5ef774f2488c152f3c42ae1346fa372 Author: Takashi Kajinami <email address hidden> Date: Mon May 16 13:03:09 2022 +0900
Format json output properly
str(dict) or print(dict) format a dict value into an invalid json string because it uses single quotes(') instead of double quotes(").
This also fixes the log messages which mentions 'JSON' but doesn't convert a dict value to a valid json string.
Conflicts: os_net_config/cli.py
Resolved conflict caused by da3bd5fbb8818743b96d7975f81907ed07409688 .
Closes-Bug: #1973566 Change-Id: I2398e3881310746f349e2c9a89c64956efbc13b2 (cherry picked from commit 88a4c885f6feec08209aebbb859f34957b952b26) (cherry picked from commit bf263b66fb47f90892eb8e347322f5cf3808edb1) (cherry picked from commit 1fda18fbf0ea74234d8b68a2314a01491f45212d)
Reviewed: https:/ /review. opendev. org/c/openstack /os-net- config/ +/843385 /opendev. org/openstack/ os-net- config/ commit/ 357c19afd5ef774 f2488c152f3c42a e1346fa372
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 357c19afd5ef774 f2488c152f3c42a e1346fa372
Author: Takashi Kajinami <email address hidden>
Date: Mon May 16 13:03:09 2022 +0900
Format json output properly
str(dict) or print(dict) format a dict value into an invalid json
string because it uses single quotes(') instead of double quotes(").
This also fixes the log messages which mentions 'JSON' but doesn't
convert a dict value to a valid json string.
Conflicts:
os_ net_config/ cli.py
Resolved conflict caused by da3bd5fbb881874 3b96d7975f81907 ed07409688 .
Closes-Bug: #1973566 6f349e2c9a89c64 956efbc13b2 8209aebbb859f34 957b952b26) 892eb8e347322f5 cf3808edb1) 34d8b68a2314a01 491f45212d)
Change-Id: I2398e388131074
(cherry picked from commit 88a4c885f6feec0
(cherry picked from commit bf263b66fb47f90
(cherry picked from commit 1fda18fbf0ea742