Fix circular import

Closes-Bug: #2000386
Change-Id: I41f2cd5e5bcfa3192a761d4fb72663ff4b27b78e
This commit is contained in:
Hongbin Lu 2022-12-24 08:52:49 +00:00 committed by hongbin
parent 1fa73c5556
commit f4e8f995b5
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,6 @@ from oslo_utils import timeutils
from zun.common import exception
from zun.common import policy
from zun.common import utils
class RequestContext(context.RequestContext):
@ -93,7 +92,8 @@ class RequestContext(context.RequestContext):
'auth_token_info': self.auth_token_info,
'password': self.password,
'all_projects': self.all_projects,
'timestamp': utils.strtime(self.timestamp) if
'timestamp': self.timestamp.strftime(
"%Y-%m-%dT%H:%M:%S.%f") if
hasattr(self, 'timestamp') else None
})
return value