def delete_one_image(self, user, custom_image):
        """Delete the image created for the user and tenant."""

        clients = osclients.Clients(user["credential"])

        nova_scenario = nova_utils.NovaScenario(
            context=self.context, clients=clients)

        with logging.ExceptionLogger(
                LOG, custom_image["id"] % _("Unable to delete image %s")):

            custom_image = nova_scenario.clients("nova").images.get(
                custom_image["id"])
            nova_scenario._delete_image(custom_image)
dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/context/vm/custom_image.py/BaseCustomImageGenerator.delete_one_image/swapped operands of `%`