Fix the token logic to be compatible with older ironic
Currently we fail with HTTP 401 if both the known and the received tokens are None. This prevents IPA from being updated before ironic. Story: #2007557 Task: #39419 Change-Id: I80249bd3468b581dc035d72156cbfa2f5f225a1b
This commit is contained in:
parent
f6668f94c9
commit
6a9a9e9e14
|
@ -245,10 +245,8 @@ class IronicPythonAgent(base.ExecuteCommandMixin):
|
|||
'the Victoria development cycle.')
|
||||
# Tell the API everything is okay.
|
||||
return True
|
||||
if self.agent_token is not None:
|
||||
return self.agent_token == token
|
||||
|
||||
return False
|
||||
return self.agent_token == token
|
||||
|
||||
def _get_route_source(self, dest):
|
||||
"""Get the IP address to send packages to destination."""
|
||||
|
|
Loading…
Reference in New Issue