def create_image(self):
    try:
        self.change_status(Zone.ZONE_STATUS_INITIALIZING)
        client = get_cloud_client(self.region.vars)
        client.create_image(zone=self)
        self.change_status(Zone.ZONE_STATUS_READY)
    except Exception as e:
        self.change_status(Zone.ZONE_STATUS_ERROR)
def create_image(self):
    try:
        self.change_status(Zone.ZONE_STATUS_INITIALIZING)
        client = get_cloud_client(self.region.vars)
        client.create_image(zone=self)
        self.change_status(Zone.ZONE_STATUS_READY)
    except Exception as e:
        self.change_status(Zone.ZONE_STATUS_ERROR)