Beispiel #1
0
 def get(cls, cli, index=None):
     if index is None:
         ret = VNXDiskList(cli)
     else:
         index = check_text(index).upper()
         ret = VNXDisk(index, cli)
     return ret
Beispiel #2
0
 def get(cls, cli, index=None):
     if index is None:
         ret = VNXDiskList(cli)
     else:
         index = check_text(index).upper()
         ret = VNXDisk(index, cli)
     return ret
Beispiel #3
0
 def get_id(image):
     if isinstance(image, VNXMirrorViewImage):
         image = image.uid
     try:
         image = check_text(image)
     except ValueError:
         raise ValueError('invalid image id supplied: {}'.format(image))
     return image
Beispiel #4
0
 def get_id(image):
     if isinstance(image, VNXMirrorViewImage):
         image = image.uid
     try:
         image = check_text(image)
     except ValueError:
         raise ValueError('invalid image id supplied: {}'
                          .format(image))
     return image