We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d70a33 commit f49b22cCopy full SHA for f49b22c
vipaccess/provision.py
@@ -119,8 +119,11 @@ def get_token_from_response(response_xml):
119
120
tree = etree.fromstring(response_xml)
121
result = tree.find('v:Status/v:StatusMessage', ns).text
122
+ reasoncode = tree.find('v:Status/v:ReasonCode', ns).text
123
- if result == 'Success':
124
+ if result != 'Success':
125
+ raise RuntimeError(result, reasoncode)
126
+ else:
127
token = {}
128
token['timeskew'] = time.time() - int(tree.find('v:UTCTimestamp', ns).text)
129
container = tree.find('v:SecretContainer', ns)
0 commit comments