allow the OSRF_HOSTNAME env variable to specify the local hostname -- for single...
[OpenSRF.git] / src / perlmods / OpenSRF / Utils / Config.pm
index 8e9c398..427c28d 100755 (executable)
@@ -327,7 +327,7 @@ sub FILE {
 
 sub load_env {
        my $self = shift;
-       my $host = hostfqdn();
+       my $host = $ENV{'OSRF_HOSTNAME'} || hostfqdn();
        chomp $host;
        $$self{env} = $self->section_pkg->new;
        $$self{env}{hostname} = $host;