Skip to content

Commit

Permalink
Log if the realm is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Feb 1, 2016
1 parent 014c9a3 commit 70b4419
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pf/config/util.pm
Expand Up @@ -428,7 +428,9 @@ sub get_user_sources {
return ($realm_source);
}
else {
get_logger->info("Realm source ".$realm_source->{id}." is configured in the realm $realm but is not in the portal profile. Ignoring it and using the portal profile sources.");
if (defined($realm)) {
get_logger->info("Realm source ".$realm_source->{id}." is configured in the realm $realm but is not in the portal profile. Ignoring it and using the portal profile sources.");
}
return @sources;
}

Expand Down

0 comments on commit 70b4419

Please sign in to comment.