fixing typo
This commit is contained in:
parent
83d408b238
commit
ec3d2d7316
|
@ -279,13 +279,12 @@ def sync_source_destination():
|
||||||
|
|
||||||
for dst in destinations_service.get_all():
|
for dst in destinations_service.get_all():
|
||||||
destination_plugin = plugins.get(dst.plugin_name)
|
destination_plugin = plugins.get(dst.plugin_name)
|
||||||
account_number = IPlugin.get_option('accountNumber', src.options)
|
account_number = IPlugin.get_option('accountNumber', dst.options)
|
||||||
if destination_plugin.sync_as_source and (account_number not in src_accounts):
|
if destination_plugin.sync_as_source and (account_number not in src_accounts):
|
||||||
src_options = copy.deepcopy(plugins.get(destination_plugin.sync_as_source_name).options)
|
src_options = copy.deepcopy(plugins.get(destination_plugin.sync_as_source_name).options)
|
||||||
for o in src_options:
|
for o in src_options:
|
||||||
if o.get('name') == 'accountNumber':
|
if o.get('name') == 'accountNumber':
|
||||||
o.update({'value': account_number})
|
o.update({'value': account_number})
|
||||||
|
|
||||||
sources_service.create(label=dst.label,
|
sources_service.create(label=dst.label,
|
||||||
plugin_name=destination_plugin.sync_as_source_name,
|
plugin_name=destination_plugin.sync_as_source_name,
|
||||||
options=src_options,
|
options=src_options,
|
||||||
|
|
Loading…
Reference in New Issue