~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/api/validator.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-24 13:12:53 UTC
  • mfrom: (1.1.55)
  • Revision ID: package-import@ubuntu.com-20120524131253-ommql08fg1en06ut
Tags: 2012.2~f1-0ubuntu1
* New upstream release.
* Prepare for quantal:
  - Dropped debian/patches/upstream/0006-Use-project_id-in-ec2.cloud._format_image.patch
  - Dropped debian/patches/upstream/0005-Populate-image-properties-with-project_id-again.patch
  - Dropped debian/patches/upstream/0004-Fixed-bug-962840-added-a-test-case.patch
  - Dropped debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch
  - Dropped debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch
  - Dropped debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch 
  - Dropped debian/patches/0001-fix-useexisting-deprecation-warnings.patch
* debian/control: Add python-keystone as a dependency. (LP: #907197)
* debian/patches/kombu_tests_timeout.patch: Refreshed.
* debian/nova.conf, debian/nova-common.postinst: Convert to new ini
  file configuration
* debian/patches/nova-manage_flagfile_location.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import re
22
22
import socket
23
23
 
24
 
from nova import exception
25
 
 
26
24
LOG = logging.getLogger(__name__)
27
25
 
28
26
 
137
135
        assert callable(f)
138
136
 
139
137
        if not f(args[key]):
140
 
            value = args[key]
141
 
            validator = f.__name__
142
 
            msg = _("%(key)s with value %(value)s failed validator"
143
 
                    "  %(validator)s")
144
 
            LOG.debug(msg % locals())
 
138
            LOG.debug(_("%(key)s with value %(value)s failed"
 
139
                        " validator %(name)s"),
 
140
                      {'key': key, 'value': args[key], 'name': f.__name__})
145
141
            return False
146
142
    return True