if account name is longer than 20 characters then onevapi throws a strange error
authorScott Baker <smbaker@gmail.com>
Tue, 7 Jan 2014 00:59:36 +0000 (16:59 -0800)
committerScott Baker <smbaker@gmail.com>
Tue, 7 Jan 2014 00:59:36 +0000 (16:59 -0800)
planetstack/hpc_observer/hpclib.py

index f6e875b..92e87fe 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