Skip to content

Commit

Permalink
Merge pull request #3 from bastelfreak/validate
Browse files Browse the repository at this point in the history
replace deprecated is_hash with native datatype check
  • Loading branch information
bastelfreak committed Feb 27, 2024
2 parents 4fa4f7b + c0e7259 commit bb0f467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/mirror.pp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

# $::aptly::key_server will be used as default key server
# key in hash format
if is_hash($key) and $key[id] {
if $key =~ Hash and $key[id] {
if is_array($key[id]) {
$key_string = join($key[id], "' '")
} elsif is_string($key[id]) or is_integer($key[id]) {
Expand Down

0 comments on commit bb0f467

Please sign in to comment.