File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/main/resources/scripts/lib Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,11 @@ def __reset(self):
137
137
# convert to newer version
138
138
if "property" in field :
139
139
if field ["property" ]:
140
- source = "property"
141
140
field ["value" ] = field ["property" ]
142
141
field ["source" ] = "property"
142
+ else :
143
+ field ["source" ] = "value"
144
+
143
145
del field ["property" ]
144
146
self .__migrated = True
145
147
elif "source" not in field :
@@ -300,8 +302,12 @@ def __migrate(self):
300
302
cert = cert_cfg ["update" ]
301
303
302
304
if "password-property" in cert :
303
- cert ["password" ] = cert ["password-property" ]
304
- cert ["source" ] = "property"
305
+ if cert ["password-property" ]:
306
+ cert ["password" ] = cert ["password-property" ]
307
+ cert ["source" ] = "property"
308
+ else :
309
+ cert ["source" ] = "password"
310
+
305
311
del cert ["password-property" ]
306
312
self .__migrated = True
307
313
elif "password" in cert and "source" not in cert :
You can’t perform that action at this time.
0 commit comments