Add config migration for pr #145

This commit is contained in:
Odd Stråbø 2019-12-13 23:44:46 +01:00
parent 2adad4250a
commit 039eea0aec

View file

@ -392,6 +392,15 @@ def get_credentials():
credentials['Servers'] = credentials.get('Servers', []) credentials['Servers'] = credentials.get('Servers', [])
# Migration for #145
# TODO: CLEANUP for 1.0.0 release
for server in credentials['Servers']:
if 'LocalAddress' in server:
server['address'] = server['LocalAddress']
del server['LocalAddress']
if 'LastConnectionMode' in server:
del server['LastConnectionMode']
return credentials return credentials