Skip to content

Commit

Permalink
Remove unecessary @field transform that breaks script in 3.17
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitounator committed Jul 16, 2019
1 parent a66a339 commit b87eea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/groovy/setup_users_from_list.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.sonatype.nexus.security.user.User
List<Map<String, String>> actionDetails = []
@Field Map scriptResults = [changed: false, error: false]
scriptResults.put('action_details', actionDetails)
@Field authManager = security.securitySystem.getAuthorizationManager(UserManager.DEFAULT_SOURCE)
authManager = security.securitySystem.getAuthorizationManager(UserManager.DEFAULT_SOURCE)

def updateUser(userDef, currentResult) {
User user = security.securitySystem.getUser(userDef.username)
Expand Down

0 comments on commit b87eea6

Please sign in to comment.