Skip to content
Snippets Groups Projects
Commit 468da466 authored by Hans Persson's avatar Hans Persson
Browse files

Explicitly test for empty string.

In puppet version 4 and later, the empty string is considered true.
This means that conditions written as only 'if $var {' may suddenly
end up taking the opposite code path than originally expected. Add
an explicit test for the empty string to avoid this.
parent c7f0b5d8
Branches
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ define tsmclient($serveraddress=undef, $nodename=$fqdn,
$tsmclient::config::default_inclexcl,
$inclexcl)
if $serveraddress {
if $serveraddress and $serveraddress != '' {
$tsm_serveraddress = $serveraddress
} elsif ($tsmclient::config::tsmservers and
$name in $tsmclient::config::tsmservers) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment