Import the _ of i18n

Bug #1652906 reported by zhangjialong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mogan
Fix Committed
Low
zhangjialong

Bug Description

In [1] and [2],we using _ to log the error message. While, we do not import it in those files.
We should add it.

[1]https://github.com/openstack/nimble/blob/master/nimble/engine/manager.py#L109
[2]https://github.com/openstack/nimble/blob/master/nimble/engine/flows/create_instance.py#L317,

Tags: i18n nimble
zhangjialong (zhangjl)
Changed in nimble:
assignee: nobody → zhangjialong (zhangjl)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nimble (master)

Reviewed: https://review.openstack.org/415406
Committed: https://git.openstack.org/cgit/openstack/nimble/commit/?id=2a44ad88ccc5ede3b8eaedae27a576ace9bb7e1d
Submitter: Jenkins
Branch: master

commit 2a44ad88ccc5ede3b8eaedae27a576ace9bb7e1d
Author: zhangjl <email address hidden>
Date: Wed Dec 28 08:36:35 2016 +0000

    Fix translations usage of _

    _ wasn't being imported here, but was being used at [1] and [2]. Import
    _ from nimble.common.i18n to fix this.

    [1]https://github.com/openstack/nimble/blob/master/nimble/engine/manager.py#L109
    [2]https://github.com/openstack/nimble/blob/master/nimble/engine/flows/create_instance.py#L317

    Close-Bug: #1652906
    Change-Id: I53f524c9a2bc3fb6a285005166375615ebe27292

zhangjialong (zhangjl)
Changed in nimble:
status: New → Fix Committed
Changed in mogan:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.