Support both string and boolean for deleteConnectionFile.
This commit is contained in:
parent
ecd7ba7baf
commit
4fc0d6fc63
1 changed files with 2 additions and 3 deletions
|
|
@ -198,9 +198,8 @@ public class VmAccess extends FreeMarkerConlet<VmAccess.ResourceModel> {
|
|||
// Delete connection file
|
||||
deleteConnectionFile
|
||||
= Optional.ofNullable(c.get("deleteConnectionFile"))
|
||||
.filter(v -> v instanceof String)
|
||||
.map(v -> (String) v)
|
||||
.map(Boolean::parseBoolean).orElse(true);
|
||||
.map(Object::toString).map(Boolean::parseBoolean)
|
||||
.orElse(true);
|
||||
|
||||
// Users or roles for which previews should be synchronized
|
||||
syncUsers = ((List<Map<String, String>>) c.getOrDefault(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue