Use constant when calling namespaces K8s endpoint

Looks like this place is missing constant usage.

TrivialFix

Change-Id: I4d6450a544062b51a26805ee6e2d328c64231cf0
This commit is contained in:
Michał Dulko 2019-06-05 15:06:42 +02:00
parent 8430a38d13
commit b5823e311b
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ cache.configure_cache_region(oslo_cfg.CONF, namespace_handler_cache_region)
class NamespaceHandler(k8s_base.ResourceEventHandler):
OBJECT_KIND = constants.K8S_OBJ_NAMESPACE
OBJECT_WATCH_PATH = "%s/%s" % (constants.K8S_API_BASE, "namespaces")
OBJECT_WATCH_PATH = constants.K8S_API_NAMESPACES
def __init__(self):
super(NamespaceHandler, self).__init__()