Skip to content

Commit

Permalink
Fix update condition for repositories (#189)
Browse files Browse the repository at this point in the history
Fixes #186
  • Loading branch information
zeitounator authored Sep 10, 2019
1 parent d12209c commit 8bbeb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/groovy/create_repos_from_list.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ parsed_args.each { currentRepo ->
scriptResults['changed'] = true
log.info('Configuration for repo {} created', currentRepo.name)
} else {
if (configuration.equals(existingRepository.configuration)) {
if (!(configuration.properties == existingRepository.configuration.properties)) {
repositoryManager.update(configuration)
currentResult.put('status', 'updated')
log.info('Configuration for repo {} saved', currentRepo.name)
Expand Down

0 comments on commit 8bbeb8b

Please sign in to comment.