summaryrefslogtreecommitdiff
path: root/designate/manage
diff options
context:
space:
mode:
authorEndre Karlson <endre.karlson@hp.com>2014-04-03 11:24:06 +0200
committerEndre Karlson <endre.karlson@hp.com>2014-04-10 13:16:26 +0200
commit0d3a4427d9c9111cd0229d1b05d8517d9a2945b6 (patch)
treefa06d95de71c0933ff07bd2baf4885c60eaac766 /designate/manage
parent2d864e111af18449f003ba420bd329d32d407e62 (diff)
downloaddesignate-0d3a4427d9c9111cd0229d1b05d8517d9a2945b6.tar.gz
Switch to oslo.messaging
Change-Id: Ie223ca4c6384902ec006380c68911f57d0ed501e
Diffstat (limited to 'designate/manage')
-rw-r--r--designate/manage/tlds.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/designate/manage/tlds.py b/designate/manage/tlds.py
index faf9533a..bb096ade 100644
--- a/designate/manage/tlds.py
+++ b/designate/manage/tlds.py
@@ -14,7 +14,11 @@
# under the License.
import csv
import os
+
+from oslo.config import cfg
+
from designate import exceptions
+from designate import rpc
from designate.central import rpcapi as central_rpcapi
from designate.openstack.common import log as logging
from designate.manage import base
@@ -49,8 +53,9 @@ class TLDCommands(base.Commands):
InvalidLine - This occurs if the line contains more than 2 fields.
"""
- def __init__(self,):
+ def __init__(self):
super(TLDCommands, self).__init__()
+ rpc.init(cfg.CONF)
self.central_api = central_rpcapi.CentralAPI()
# The dictionary function __str__() does not list the fields in any