mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Make sure agent is in v1 before upgrading agents
This commit is contained in:
parent
38d2345cd2
commit
fd4a2bdb4d
1 changed files with 5 additions and 1 deletions
|
@ -2901,9 +2901,13 @@ def upgrade_config_to_db():
|
|||
|
||||
# Get the old config section for the agent
|
||||
agent_section = section_overrides.get(agent, agent.capitalize())
|
||||
agent_config = plexpy.CONFIG._config[agent_section]
|
||||
agent_config = plexpy.CONFIG._config.get(agent_section)
|
||||
agent_config_key = agent_section.lower()
|
||||
|
||||
# Make sure there is an existing config section (to prevent adding v2 agents)
|
||||
if not agent_config:
|
||||
continue
|
||||
|
||||
# Get all the actions for the agent
|
||||
agent_actions = {}
|
||||
for action in get_notify_actions():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue