Add default value to agent create_or_update_agent new param
Commit Ifc88dfb3041aa07b197f395172b69399796ba46a recently added a new agent_timestamp parameter to create_or_update_agent. As some other projects use this api, the change should have been backwards compatible. Adding default to None will solve this issue. Closes-Bug: #1833589 Change-Id: I2d17f8eaf4d74ae2081f82e3c1a09bdc80b1d701
This commit is contained in:
parent
b7b399f16e
commit
0963ce94e0
@ -369,7 +369,8 @@ class AgentDbMixin(ext_agent.AgentPluginBase, AgentAvailabilityZoneMixin):
|
|||||||
'agent_timestamp': agent_timestamp})
|
'agent_timestamp': agent_timestamp})
|
||||||
|
|
||||||
@db_api.retry_if_session_inactive()
|
@db_api.retry_if_session_inactive()
|
||||||
def create_or_update_agent(self, context, agent_state, agent_timestamp):
|
def create_or_update_agent(self, context, agent_state,
|
||||||
|
agent_timestamp=None):
|
||||||
"""Registers new agent in the database or updates existing.
|
"""Registers new agent in the database or updates existing.
|
||||||
|
|
||||||
Returns tuple of agent status and state.
|
Returns tuple of agent status and state.
|
||||||
|
Loading…
Reference in New Issue
Block a user