~nova-coresec/nova/bexar-translations

« back to all changes in this revision

Viewing changes to nova/utils.py

  • Committer: Ed Leafe
  • Date: 2011-01-19 02:00:28 UTC
  • mto: This revision was merged to the branch mainline in revision 607.
  • Revision ID: ed@leafe.com-20110119020028-3hthda2qccp2uawa
Completed first pass at converting all localized strings with multiple format substitutions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        result = obj.communicate()
139
139
    obj.stdin.close()
140
140
    if obj.returncode:
141
 
        LOG.debug(_("Result was %s") % (obj.returncode))
 
141
        LOG.debug(_("Result was %s") % obj.returncode)
142
142
        if check_exit_code and obj.returncode != 0:
143
143
            (stdout, stderr) = result
144
144
            raise ProcessExecutionError(exit_code=obj.returncode,
214
214
        else:
215
215
            return 'fe00::'
216
216
    except IndexError as ex:
217
 
        LOG.warn(_("Couldn't get Link Local IP of %s :%s"), interface, ex)
 
217
        LOG.warn(_("Couldn't get Link Local IP of %(interface)s :%(ex)s")
 
218
                % locals())
218
219
    except ProcessExecutionError as ex:
219
 
        LOG.warn(_("Couldn't get Link Local IP of %s :%s"), interface, ex)
 
220
        LOG.warn(_("Couldn't get Link Local IP of %(interface)s :%(ex)s")
 
221
                % locals())
220
222
    except:
221
223
        return 'fe00::'
222
224