diff --git a/gnocchi/cli/api.py b/gnocchi/cli/api.py index 6b8f650c8..ca0915ab8 100644 --- a/gnocchi/cli/api.py +++ b/gnocchi/cli/api.py @@ -37,7 +37,7 @@ def prepare_service(conf=None): conf = cfg.ConfigOpts() opts.set_defaults() - policy_opts.set_defaults(conf) + policy_opts.set_defaults(conf, 'policy.yaml') conf = service.prepare_service(conf=conf) cfg_path = conf.oslo_policy.policy_file if not os.path.isabs(cfg_path): diff --git a/setup.cfg b/setup.cfg index 422d4eaac..cba38090f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,7 @@ install_requires = numpy>=1.9.0 iso8601 oslo.config>=3.22.0 - oslo.policy>=3.5.0 + oslo.policy>=3.11.0 oslo.middleware>=3.22.0 pytimeparse pecan>=0.9