Skip to content

Commit

Permalink
Update create_repos_from_list.groovy
Browse files Browse the repository at this point in the history
Use array to set proprietary components

Signed-off-by: Brian Veltman <[email protected]>
  • Loading branch information
brianveltman committed Jun 12, 2024
1 parent 2465242 commit 3c6af9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/groovy/create_repos_from_list.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ parsed_args.each { currentRepo ->
// Configs for all hosted repos
if (currentRepo.type == 'hosted') {
configuration.attributes['storage']['writePolicy'] = currentRepo.write_policy.toUpperCase()
configuration.attributes['component']['proprietaryComponents'] = currentRepo.get('proprietary_components', false)
configuration.attributes['component'] = [
proprietaryComponents: currentRepo.get('proprietary_components', false)
]
}

// Configs for yum hosted repos
Expand Down

0 comments on commit 3c6af9c

Please sign in to comment.