summaryrefslogtreecommitdiffstats
path: root/keystone/auth/token_factory.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone/auth/token_factory.py')
-rw-r--r--keystone/auth/token_factory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keystone/auth/token_factory.py b/keystone/auth/token_factory.py
index 43a23ce6..64f945fa 100644
--- a/keystone/auth/token_factory.py
+++ b/keystone/auth/token_factory.py
@@ -17,12 +17,12 @@
"""Token Factory"""
import json
-import subprocess
import uuid
import webob
from keystone import catalog
from keystone.common import cms
+from keystone.common import environment
from keystone.common import logging
from keystone.common import utils
from keystone import config
@@ -310,7 +310,7 @@ def create_token(context, auth_context, auth_info):
token_id = cms.cms_sign_token(json.dumps(token_data),
CONF.signing.certfile,
CONF.signing.keyfile)
- except subprocess.CalledProcessError:
+ except environment.subprocess.CalledProcessError:
raise exception.UnexpectedError(_(
'Unable to sign token.'))
else: