diff options
Diffstat (limited to 'nova/context.py')
-rw-r--r-- | nova/context.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/context.py b/nova/context.py index c5c3162fb..cab8b2d4b 100644 --- a/nova/context.py +++ b/nova/context.py @@ -81,7 +81,10 @@ class RequestContext(object): self.request_id = request_id self.auth_token = auth_token if overwrite or not hasattr(local.store, 'context'): - local.store.context = self + self.update_store() + + def update_store(self): + local.store.context = self def to_dict(self): return {'user_id': self.user_id, |