Explorar o código

HUE-1464 [hbase] hyphens not supported in cluster name

Kevin Wang %!s(int64=12) %!d(string=hai) anos
pai
achega
68716580a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/hbase/src/hbase/api.py

+ 1 - 1
apps/hbase/src/hbase/api.py

@@ -57,7 +57,7 @@ class HbaseApi(object):
     except:
       full_config = [conf.HBASE_CLUSTERS.get()]
     for config in full_config: #hack cause get() is weird
-      match = re.match('\((?P<name>\w+)\|(?P<host>.+):(?P<port>[0-9]+)\)', config)
+      match = re.match('\((?P<name>[^\(\)\|]+)\|(?P<host>.+):(?P<port>[0-9]+)\)', config)
       clusters += [{
         'name': match.group('name'),
         'host': match.group('host'),