remove Dashboard Views from user admin
[plstackapi.git] / planetstack / hpc_observer / hpclib.py
index f6e875b..a4fa3b9 100644 (file)
@@ -63,7 +63,7 @@ class HpcLibrary:
         for c in x:
             if (c in (string.lowercase + string.digits)):
                 y = y + c
-        return y
+        return y[:20]
 
     def extract_slice_info(self, service):
         """ Produce a dict that describes the slices for the CMI
@@ -84,7 +84,7 @@ class HpcLibrary:
             if not ("_" in name):
                 continue
 
-            if "coblitz" in name:
+            if ("coblitz" in name) or ("hpc" in name):
                 slicenames["coblitz"] = name
                 slicehosts["coblitz"] = [sliver.node.name for sliver in slice.slivers.all()]
             elif "cmi" in name: