diff options
author | 2015-05-24 02:30:42 -0400 | |
---|---|---|
committer | 2016-02-25 05:25:34 +0900 | |
commit | 0b3a92aa3f59ddb50a6f538a1221fa6a6cae73bf (patch) | |
tree | 42ce67ba25703b92b155dba83eab2fd4b9095f8c | |
parent | BugUrl: add Flyspray support (diff) | |
download | bugzilla-0b3a92aa3f59ddb50a6f538a1221fa6a6cae73bf.tar.gz bugzilla-0b3a92aa3f59ddb50a6f538a1221fa6a6cae73bf.tar.bz2 bugzilla-0b3a92aa3f59ddb50a6f538a1221fa6a6cae73bf.zip |
GENTOO_NODE: set default to the hostname
Rather than show "unknown" which is not useful for anyone, fall back to
the raw hostname. At least this way people can easily look at the real
info needed to update the table in git.
-rw-r--r-- | extensions/Gentoo/Extension.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/Gentoo/Extension.pm b/extensions/Gentoo/Extension.pm index 93301cbdd..ef3afc56f 100644 --- a/extensions/Gentoo/Extension.pm +++ b/extensions/Gentoo/Extension.pm @@ -55,7 +55,8 @@ sub template_before_create { 'yellowleg' => 'bugs-web2' ); - $constants->{GENTOO_NODE} = $nodemap{(uname())[1]} ? $nodemap{(uname())[1]} : "unknown"; + my $hostname = (uname())[1]; + $constants->{GENTOO_NODE} = $nodemap{$hostname} ? $nodemap{$hostname} : "[$hostname]"; $constants->{GENTOO_APPEND_VERSION} = "+"; } |