Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardparis committed Oct 6, 2016
1 parent ade7670 commit ad30262
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/docs/_build/html/_sources/index.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. SDS Controller for Object Storage documentation master file, created by
.. Crystal Controller documentation master file, created by
sphinx-quickstart on Tue Dec 22 15:35:18 2015.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to SDS Controller for Object Storage's documentation!
Welcome to Crystal Controller documentation!
=============================================================

Contents:
Expand Down
6 changes: 4 additions & 2 deletions api/registry/dynamic_policies/rules/base_bw_rule.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import redis
import pika
import logging
Expand All @@ -22,8 +23,9 @@ class AbstractEnforcementAlgorithm(object):
def __init__(self, name, method):
"""
"""
settings = ConfigParser.ConfigParser()
settings.read("registry/policies/dynamic_policies.config")
settings = ConfigParser.ConfigParser()
config_file = (os.path.join(os.getcwd(), 'registry', 'dynamic_policies', 'settings.conf'))
settings.read(config_file)

logging.info('Rule init: OK')
self.rmq_user = settings.get('rabbitmq', 'username')
Expand Down

0 comments on commit ad30262

Please sign in to comment.