Skip to content

Commit

Permalink
Merge pull request #459 from pradermecker/pra
Browse files Browse the repository at this point in the history
Guard against undef
  • Loading branch information
3flex committed Sep 24, 2014
2 parents 8cd1633 + 0a46f25 commit 60efade
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 60efade

Please sign in to comment.