Codebase list python-castellan / 43efbf1
Move line of code to ensure context and client stay in sync If the barbican_client.Client() throws an exception, then self._current_context will not match self._barbican_client. This fix moves a line of code down to ensure they will match. Change-Id: I4e6291d98d9b2d37b3d5063b9b20fbb093d254d4 Closes-bug: #1523646 Dave McCowan 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
109109 return self._barbican_client
110110
111111 try:
112 self._current_context = context
113112 auth = self._get_keystone_auth(context)
114113 sess = session.Session(auth=auth)
115114
117116 self._barbican_client = barbican_client.Client(
118117 session=sess,
119118 endpoint=self._barbican_endpoint)
119 self._current_context = context
120120
121121 except Exception as e:
122122 LOG.error(u._LE("Error creating Barbican client: %s"), e)