diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-09-23 11:06:49 +0200 |
|---|---|---|
| committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-09-23 11:06:49 +0200 |
| commit | 378970b1495840a2a193dbecc3f9bb8701237744 (patch) | |
| tree | 17f374f6af4ec5ac1ca4c6106f28006b07b1034b /nova | |
| parent | 9e12753508474b430c1b87fd7d59dcbc2d096042 (diff) | |
Compare project_id to '' using == (equality) rather than 'is' (identity). This is needed because '' isn't the same as u''.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/auth/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/auth/manager.py b/nova/auth/manager.py index bc3a8a12e..2ec586419 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -266,7 +266,7 @@ class AuthManager(object): # NOTE(vish): if we stop using project name as id we need better # logic to find a default project for user - if project_id is '': + if project_id == '': project_id = user.name project = self.get_project(project_id) |
