Browse Source

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
changes/24/585024/3
Erik Olof Gunnar Andersson 4 years ago committed by Carlos Goncalves
parent
commit
cfae79cfee
  1. 3
      etc/policy/octavia-policy-generator.conf
  2. 3
      tox.ini

3
etc/policy/octavia-policy-generator.conf

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

3
tox.ini

@ -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

Loading…
Cancel
Save