From ce0856193879346b221b5fdf44d5d82e67a39797 Mon Sep 17 00:00:00 2001 From: Marek Kopecky Date: Fri, 30 Aug 2024 09:51:38 +0200 Subject: [PATCH] Update AddDataSource offline command based on WFLY-18324 --- .../creaper/commands/datasources/AddDataSource.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/src/main/resources/org/wildfly/extras/creaper/commands/datasources/AddDataSource.groovy b/commands/src/main/resources/org/wildfly/extras/creaper/commands/datasources/AddDataSource.groovy index eebbb24e..f8306ba9 100644 --- a/commands/src/main/resources/org/wildfly/extras/creaper/commands/datasources/AddDataSource.groovy +++ b/commands/src/main/resources/org/wildfly/extras/creaper/commands/datasources/AddDataSource.groovy @@ -44,9 +44,10 @@ def dsDefinition = { } } if (nn(userName, password, securityDomain)) { - security { - if (nn(userName)) 'user-name'(userName) - if (nn(password)) 'password'(password) + securityAttrs = [:] + if (nn(userName)) securityAttrs['user-name'] = userName + if (nn(password)) securityAttrs['password'] = password + security(securityAttrs) { if (nn(securityDomain)) 'security-domain'(securityDomain) } }