Skip to content

Commit

Permalink
Remove example policy.yaml
Browse files Browse the repository at this point in the history
... because the file is just empty. The oslo.policy library skips
loading the file if it does not exist.
  • Loading branch information
kajinamit committed Jan 26, 2024
1 parent f0fb3e5 commit 6ad4bb8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions gnocchi/cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ def prepare_service(conf=None):
opts.set_defaults()
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):
cfg_path = conf.find_file(cfg_path)
if cfg_path is None or not os.path.exists(cfg_path):
cfg_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'..', 'rest', 'policy.yaml'))
conf.set_default('policy_file', cfg_path, group='oslo_policy')
return conf


Expand Down
Empty file removed gnocchi/rest/policy.yaml
Empty file.

0 comments on commit 6ad4bb8

Please sign in to comment.