Skip to content

Commit 2829f23

Browse files
author
David Stirling
committed
Handle properties supplying db_password instead of db_passwd
1 parent 19605f1 commit 2829f23

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

cpa/properties.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
'db_name',
3131
'db_user',
3232
'db_passwd',
33+
'db_password',
3334
'image_table',
3435
'object_table',
3536
'image_csv_file',
@@ -87,6 +88,7 @@
8788
'db_name',
8889
'db_user',
8990
'db_passwd',
91+
'db_password',
9092
'table_id',
9193
'image_url_prepend',
9294
'image_csv_file',
@@ -132,10 +134,11 @@
132134
]
133135

134136
# map deprecated fields to new fields
135-
field_mappings = {'classifier_ignore_substrings' : 'classifier_ignore_columns',
136-
'image_channel_files' : 'image_file_cols',
137-
'image_channel_paths' : 'image_path_cols',
138-
'image_channel_names' : 'image_names',
137+
field_mappings = {'classifier_ignore_substrings': 'classifier_ignore_columns',
138+
'image_channel_files': 'image_file_cols',
139+
'image_channel_paths': 'image_path_cols',
140+
'image_channel_names': 'image_names',
141+
'db_password': 'db_passwd',
139142
}
140143

141144
required_vars = list(set(list_vars + string_vars) - set(optional_vars)

0 commit comments

Comments
 (0)