Skip to content

Commit

Permalink
use 'arch'
Browse files Browse the repository at this point in the history
use 'arch' to initialize OPERATINSYSTEM/ARCH
  • Loading branch information
Gonéri Le Bouder committed Oct 22, 2012
1 parent c7bfff3 commit 75da0cd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Arch.pm
@@ -0,0 +1,28 @@
package FusionInventory::Agent::Task::Inventory::Input::Generic::Arch;

use strict;
use warnings;

use FusionInventory::Agent::Tools;

my $seen;

sub isEnabled {
return canRun('arch');
}

sub doInventory {
my (%params) = @_;

my $inventory = $params{inventory};
my $logger = $params{logger};

my $arch = getFirstLine( command => 'arch' );

$inventory->setOperatingSystem({
ARCH => $arch
});

}

1;

0 comments on commit 75da0cd

Please sign in to comment.