Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:gody
fusioninventory-agent
FusionInventory-Agent-hostname.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File FusionInventory-Agent-hostname.patch of Package fusioninventory-agent
diff -uNr FusionInventory-Agent-2.3.17.orig/lib/FusionInventory/Agent/Task/Inventory/Generic/Hostname.pm FusionInventory-Agent-2.3.17/lib/FusionInventory/Agent/Task/Inventory/Generic/Hostname.pm --- FusionInventory-Agent-2.3.17.orig/lib/FusionInventory/Agent/Task/Inventory/Generic/Hostname.pm 2015-08-23 12:14:32.000000000 +0200 +++ FusionInventory-Agent-2.3.17/lib/FusionInventory/Agent/Task/Inventory/Generic/Hostname.pm 2015-11-02 15:58:37.404230865 +0100 @@ -20,7 +20,11 @@ my $inventory = $params{inventory}; my $hostname = hostname(); - $hostname =~ s/\..*//; # keep just the hostname + + if ($params{short}) { + $hostname =~ s/\..*//; # keep just the hostname + } + $inventory->setHardware({NAME => $hostname}); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor