Skip to content

Commit

Permalink
Guard against undef
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Radermecker committed Sep 24, 2014
1 parent 8cd1633 commit 0a46f25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@
if ($proxy != undef) {
validate_string($proxy)
}
validate_string($proxy_redirect)
if ($proxy_redirect != undef) {
validate_string($proxy_redirect)
}
validate_string($proxy_read_timeout)
validate_string($proxy_connect_timeout)
validate_array($proxy_set_header)
Expand Down
4 changes: 3 additions & 1 deletion manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@
validate_string($proxy)
}
validate_string($proxy_read_timeout)
validate_string($proxy_redirect)
if ($proxy_redirect != undef) {
validate_string($proxy_redirect)
}
validate_array($proxy_set_header)
if ($proxy_cache != false) {
validate_string($proxy_cache)
Expand Down

0 comments on commit 0a46f25

Please sign in to comment.