def is_cloud_image_uuid(self, imageid): ''' TBD ''' if len(imageid) == 64 and is_number(imageid, True): return True if len(imageid) == 12 and is_number(imageid, True): return True return False
def is_cloud_image_uuid(self, imageid) : ''' TBD ''' if len(imageid) == 64 and is_number(imageid, True) : return True if len(imageid) == 12 and is_number(imageid, True) : return True return False
def is_cloud_image_uuid(self, imageid) : # DigitalOcean image IDs are just integers, and can be of # arbitrary length. At best we can detect whether or not they # are integers, but the number of digits is never a guarantee. if is_number(imageid) : return True return False
def is_cloud_image_uuid(self, imageid): # DigitalOcean image IDs are just integers, and can be of # arbitrary length. At best we can detect whether or not they # are integers, but the number of digits is never a guarantee. if is_number(imageid): return True return False
def is_cloud_image_uuid(self, imageid) : ''' TBD ''' if imageid.count("__") == 1 : if is_number(imageid.split("__")[0], True) : return True return False
def is_cloud_image_uuid(self, imageid): ''' TBD ''' if imageid.count("__") == 1: if is_number(imageid.split("__")[0], True): return True return False
def is_cloud_image_uuid(self, imageid): ''' TBD ''' if len(imageid) > 4: if imageid[0:4] == "ami-": if is_number(imageid[5:], True): return True return False
def is_cloud_image_uuid(self, imageid): ''' TBD ''' if len(imageid) == 7 and is_number(imageid): return True if len(imageid) == 36 and imageid.count('-') == 4: return True return False