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:
Erik Olof Gunnar Andersson 2018-07-23 13:16:49 -07:00 committed by Carlos Goncalves
parent 9ca61f2f4a
commit cfae79cfee
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,4 @@
[DEFAULT]
output_file = etc/policy.yaml.sample
format = json
output_file = etc/octavia/policy.json.sample
namespace = octavia

View File

@ -117,8 +117,7 @@ whitelist_externals = mkdir
commands =
mkdir -p etc/octavia
oslopolicy-sample-generator \
--config-file etc/policy/octavia-policy-generator.conf \
--output-file etc/octavia/json.policy.sample
--config-file etc/policy/octavia-policy-generator.conf
[testenv:specs]
basepython = python3