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

« back to all changes in this revision

Viewing changes to nova/common/policy.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short, Adam Gandleman
  • Date: 2012-02-03 09:03:12 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20120203090312-v0f0yt3tx1dfbd4r
Tags: 2012.1~e4~20120203.12454-0ubuntu1
[ Adam Gandelman ]
[Chuck Short]
* New upstream version.
* debian/control: Replace m2crpto with python-crypto.
  (LP: #917851)
* debian/*.upstart.in, debian/nova-common.postinst,
  debian/nova_sudoers: Change default shell to /bin/false.
  (LP: #890362)

[Adam Gandleman]
* debian/nova-common.{install, postinst}: Install policy.json on all
  Nova nodes (LP: #923817)
* debian/rules: Remove installation of policy.json (moved to nova-common),
  point to the correct upstream git repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
 
165
165
    def _check_role(self, match, target_dict, cred_dict):
166
166
        """Check that there is a matching role in the cred dict."""
167
 
        return match in cred_dict['roles']
 
167
        return match.lower() in [x.lower() for x in cred_dict['roles']]
168
168
 
169
169
    def _check_generic(self, match, target_dict, cred_dict):
170
170
        """Check an individual match.