diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-03-29 22:41:15 -0700 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-03-29 22:41:15 -0700 |
commit | 7856df88b22e6ff3bd0f124e3d71f130e3e9c205 (patch) | |
tree | 93e1bdbdc984c9a9bbb04aa5dd6d73b119cf7fa5 /nova/vnc | |
parent | 3e9bafd4f05a4bda29c30460bf3e3428a03f8218 (diff) | |
download | nova-7856df88b22e6ff3bd0f124e3d71f130e3e9c205.tar.gz |
fix localization for multiple replacement strings
Diffstat (limited to 'nova/vnc')
-rw-r--r-- | nova/vnc/auth.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nova/vnc/auth.py b/nova/vnc/auth.py index c7df13450e..ce5e10388e 100644 --- a/nova/vnc/auth.py +++ b/nova/vnc/auth.py @@ -117,11 +117,13 @@ class VNCProxyAuthManager(manager.Manager): self.tokens[token] = {'host': host, 'port': port, 'last_activity_at': time.time()} - LOG.audit(_("Received Token: %s, %s)"), token, self.tokens[token]) + token_dict = self.tokens[token] + LOG.audit(_("Received Token: %(token)s, %(token_dict)s)"), locals()) def check_token(self, context, token): - LOG.audit(_("Checking Token: %s, %s)"), token, (token in self.tokens)) - if token in self.tokens: + token_valid = token in self.tokens + LOG.audit(_("Checking Token: %(token)s, %(token_valid)s)"), locals()) + if token_valid: return self.tokens[token] def _delete_expired_tokens(self): |