Skip to content

Commit

Permalink
Remove deprecated validate_hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Aug 8, 2023
1 parent 2332821 commit e8279bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions manifests/install/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
#
# This class manages yum repository for Zookeeper packages
#
# PRIVATE CLASS - do not use directly (use main `zookeeper` class).
# @private - do not use directly (use main `zookeeper` class).
class zookeeper::install::repo inherits zookeeper::install {
if $zookeeper::repo {
case $facts['os']['family'] {
'RedHat', 'Suse': {
$_config = $zookeeper::repo
validate_hash($_config)
if $_config['name'] == undef or $_config['url'] == undef or $_config['descr'] == undef {
fail('Invalid parameter settings for custom repo')
}
Expand Down

0 comments on commit e8279bc

Please sign in to comment.