~nova-coresec/nova/bexar-translations

« back to all changes in this revision

Viewing changes to nova/api/openstack/servers.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:
132
132
            if image_id in mapping:
133
133
                return mapping[image_id]
134
134
 
135
 
        raise exception.NotFound(
136
 
            _("No entry for image '%s' in mapping file '%s'") %
137
 
                (image_id, mapping_filename))
 
135
        msg = _("No entry for image '%(image_id)s'"
 
136
                " in mapping file '%(mapping_filename)s'") % locals()
 
137
        raise exception.NotFound(msg)
138
138
 
139
139
    def create(self, req):
140
140
        """ Creates a new server for a given user """