projects
/
ocsinventory-agent-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi debian/copyright i novi debian/rules
[ocsinventory-agent-cn.git]
/
Hostname.pm
diff --git
a/Hostname.pm
b/Hostname.pm
index
e641d8d
..
c1b5f31
100644
(file)
--- a/
Hostname.pm
+++ b/
Hostname.pm
@@
-19,14
+19,6
@@
sub run {
# ico, Tue, 26 May 2009 17:58:27 +0200
chomp ( my $hostname = `hostname --fqdn` );
# ico, Tue, 26 May 2009 17:58:27 +0200
chomp ( my $hostname = `hostname --fqdn` );
- #eval { require (Sys::Hostname) };
- #if (!$@) {
- # $hostname = Sys::Hostname::hostname();
- #} else {
- # chomp ( $hostname = `hostname` ); # TODO: This is not generic.
- #}
- #$hostname =~ s/\..*//; # keep just the hostname
-
$inventory->setHardware ({NAME => $hostname});
}
$inventory->setHardware ({NAME => $hostname});
}