From 76953c00c3bd6185a6b08ee7dcea524bada25f96 Mon Sep 17 00:00:00 2001 From: Mike Durnosvistov Date: Thu, 20 Nov 2014 09:42:32 +0200 Subject: Replacement `_` on `_LW` in all LOG.warning part 4 oslo.i18n uses different marker functions to separate the translatable messages into different catalogs, which the translation teams can prioritize translating. For details, please refer to: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack There were not marker fuctions some places in directory network. This commit makes changes: * Add missing marker functions * Use ',' instead of '%' while adding variables to log messages Change-Id: I913077d3b0fdee78e423c35b3a48137a17946a7b --- nova/virt/configdrive.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nova/virt/configdrive.py') diff --git a/nova/virt/configdrive.py b/nova/virt/configdrive.py index 4c8a76abdf..f4f18929e4 100644 --- a/nova/virt/configdrive.py +++ b/nova/virt/configdrive.py @@ -175,10 +175,10 @@ def required_by(instance): image_prop = utils.instance_sys_meta(instance).get( utils.SM_IMAGE_PROP_PREFIX + 'img_config_drive', 'optional') if image_prop not in ['optional', 'mandatory']: - LOG.warn(_LW('Image config drive option %(image_prop)s is invalid ' - 'and will be ignored') % - {'image_prop': image_prop}, - instance=instance) + LOG.warning(_LW('Image config drive option %(image_prop)s is invalid ' + 'and will be ignored'), + {'image_prop': image_prop}, + instance=instance) return (instance.get('config_drive') or 'always' == CONF.force_config_drive or -- cgit v1.2.1