summaryrefslogtreecommitdiffstats
path: root/vespaclient
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2017-09-08 09:03:23 +0000
committerArne Juul <arnej@yahoo-inc.com>2017-09-08 09:03:23 +0000
commit57d900271774827aed474b045b4d28b094225a56 (patch)
tree979e89c85056b58563b7ae726f2c8e71aa893906 /vespaclient
parentdaadb26ae52c23924ec9c0094e12d7a5d7499a41 (diff)
use vespa-print-default hostname
Diffstat (limited to 'vespaclient')
-rw-r--r--vespaclient/src/perl/lib/Yahoo/Vespa/Utils.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/vespaclient/src/perl/lib/Yahoo/Vespa/Utils.pm b/vespaclient/src/perl/lib/Yahoo/Vespa/Utils.pm
index 6e8e965601f..7da65a568b1 100644
--- a/vespaclient/src/perl/lib/Yahoo/Vespa/Utils.pm
+++ b/vespaclient/src/perl/lib/Yahoo/Vespa/Utils.pm
@@ -8,7 +8,6 @@ package Yahoo::Vespa::Utils;
use strict;
use warnings;
use Carp ();
-use Sys::Hostname qw(hostname);
BEGIN { # - Define exports from this module
use base 'Exporter';
@@ -35,9 +34,8 @@ return 1;
# independent of computer they run on.
sub getHostname { # ()
if (!defined $HOSTNAME) {
- $HOSTNAME = hostname;
&assertNotUnitTest();
- $HOSTNAME = `hostname`;
+ $HOSTNAME = `vespa-print-default hostname`;
chomp $HOSTNAME;
}
return $HOSTNAME;