It would be better to change the log call to
msg = _('Image name "%s" does not exist, fetching it...') LOG.info(msg, image_name)
because that delays both the translation and the string interpolation until the log message is actually going to be emitted.
It would be better to change the log call to
msg = _('Image name "%s" does not exist, fetching it...')
LOG.info(msg, image_name)
because that delays both the translation and the string interpolation until the log message is actually going to be emitted.