mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added param default_values for init_agent
This commit is contained in:
parent
e4ac6cb4ac
commit
2098daa909
@ -73,7 +73,9 @@ class Agent:
|
|||||||
####
|
####
|
||||||
# Init agent template
|
# Init agent template
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
def init_agent() -> dict:
|
def init_agent(
|
||||||
|
default_values: dict = {}
|
||||||
|
) -> dict:
|
||||||
"""
|
"""
|
||||||
Initializes an agent template with default values.
|
Initializes an agent template with default values.
|
||||||
|
|
||||||
@ -95,6 +97,10 @@ def init_agent() -> dict:
|
|||||||
"agent_mode" : "1",
|
"agent_mode" : "1",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for key, value in default_values.items():
|
||||||
|
if key in agent:
|
||||||
|
agent[key] = value
|
||||||
|
|
||||||
return agent
|
return agent
|
||||||
|
|
||||||
####
|
####
|
||||||
|
Loading…
x
Reference in New Issue
Block a user