Browse Source

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

Kevin Wang 12 years ago
parent
commit
68716580a7
1 changed files with 1 additions and 1 deletions
  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:
     except:
       full_config = [conf.HBASE_CLUSTERS.get()]
       full_config = [conf.HBASE_CLUSTERS.get()]
     for config in full_config: #hack cause get() is weird
     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 += [{
       clusters += [{
         'name': match.group('name'),
         'name': match.group('name'),
         'host': match.group('host'),
         'host': match.group('host'),