Skip to content

Commit

Permalink
Fix unknown variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Lukowski committed Jun 6, 2024
1 parent 60a4ffe commit 79fa0ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/volume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,15 @@
} else {
if $_current =~ Array {
# $_options is not an array, so remove all currently set options
$to_add = undef
$to_remove = $_current
} elsif $_options =~ Array {
# $current_options is not an array, so add all our defined options
$to_add = $_options
$to_remove = undef
} else {
$to_add = undef
$to_remove = undef
}
}
if ! empty($to_remove) {
Expand Down

0 comments on commit 79fa0ea

Please sign in to comment.