Check for presence of 'X-USER-TOKEN' in self._headers before deleting
self._headers can be set to empty if self._authenticate raises an
Exception and hence we need to check if key 'X-USER-TOKEN' is
present before trying to delete it
Change-Id: I31bba531667f424de30c0c03302301c0c171a60d
Partial-Bug: #1616797
(cherry picked from commit 681872321c672a4d581211bbda418e1b0d474983)
Reviewed: https:/ /review. opencontrail. org/23639 github. org/Juniper/ contrail- controller/ commit/ 9a0c7e056750c2b cb61f9680393c30 ef5acc2d58
Committed: http://
Submitter: Zuul
Branch: master
commit 9a0c7e056750c2b cb61f9680393c30 ef5acc2d58
Author: Megh Bhatt <email address hidden>
Date: Thu Aug 25 18:25:12 2016 -0700
Check for presence of 'X-USER-TOKEN' in self._headers before deleting
self._headers can be set to empty if self._authenticate raises an
Exception and hence we need to check if key 'X-USER-TOKEN' is
present before trying to delete it
Change-Id: I31bba531667f42 4de30c0c0330230 1c0c171a60d d581211bbda418e 1b0d474983)
Partial-Bug: #1616797
(cherry picked from commit 681872321c672a4