Fixing Octavia generating json named file containing yaml
Currently when the command to generate a policy file is used, it will generate a yaml based file, but call it json.sample.policy. This patch forces it to generate a json file, and changes the default name to policy.json.sample. Change-Id: I4d04f4f37385bd4601f566238aaba43dcbe74780
This commit is contained in:
parent
9ca61f2f4a
commit
cfae79cfee
|
@ -1,3 +1,4 @@
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
output_file = etc/policy.yaml.sample
|
format = json
|
||||||
|
output_file = etc/octavia/policy.json.sample
|
||||||
namespace = octavia
|
namespace = octavia
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -117,8 +117,7 @@ whitelist_externals = mkdir
|
||||||
commands =
|
commands =
|
||||||
mkdir -p etc/octavia
|
mkdir -p etc/octavia
|
||||||
oslopolicy-sample-generator \
|
oslopolicy-sample-generator \
|
||||||
--config-file etc/policy/octavia-policy-generator.conf \
|
--config-file etc/policy/octavia-policy-generator.conf
|
||||||
--output-file etc/octavia/json.policy.sample
|
|
||||||
|
|
||||||
[testenv:specs]
|
[testenv:specs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
Loading…
Reference in New Issue