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/23641 github. org/Juniper/ contrail- controller/ commit/ 0b01d6324f0d14e a3f3b06e99a0e9d 1fdf3aa75b
Committed: http://
Submitter: Zuul
Branch: R3.0
commit 0b01d6324f0d14e a3f3b06e99a0e9d 1fdf3aa75b
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