diff --git a/hpe3parclient/http.py b/hpe3parclient/http.py index 138a97f..2fc77a7 100644 --- a/hpe3parclient/http.py +++ b/hpe3parclient/http.py @@ -304,6 +304,8 @@ def _do_reauth(self, url, method, ex, **kwargs): try: if self.auth_try != 1: self._reauth() + if method == 'DELETE' and url.startswith('/credentials/'): + url = '/credentials/%s' % self.session_key resp, body = self._time_request(self.api_url + url, method, **kwargs) return resp, body