

def _image_needs_auth(self, image):
    if (not isinstance(image, NodeImage)):
        image = self.ex_get_image_by_id(image)
    if (image.extra['isCustomerImage'] and (image.extra['OS_type'] == 'UNIX')):
        return False
    return True

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver._image_needs_auth/original