Skip to content

Commit

Permalink
ensure no-{task,category} are never undef
Browse files Browse the repository at this point in the history
closes: #1757

Reported-by: Tomás Abad <tabadgp@gmail.com>
  • Loading branch information
Gonéri Le Bouder committed Aug 6, 2012
1 parent a3c3d8d commit 58bf107
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/FusionInventory/Agent/Config.pm
Expand Up @@ -15,6 +15,8 @@ my $default = {
'backend-collect-timeout' => 30,
'httpd-port' => 62354,
'timeout' => 180,
'no-task' => [],
'no-category' => []
};

my $deprecated = {
Expand Down Expand Up @@ -244,10 +246,8 @@ sub _checkContent {
# multi-values options
$self->{logger} = [ split(/,/, $self->{logger}) ] if $self->{logger};
$self->{server} = [ split(/,/, $self->{server}) ] if $self->{server};
$self->{'no-task'} = [ split(/,/, $self->{'no-task'}) ]
if $self->{'no-task'};
$self->{'no-category'} = [ split(/,/, $self->{'no-category'}) ]
if $self->{'no-category'};
$self->{'no-task'} = [ split(/,/, $self->{'no-task'}) ];
$self->{'no-category'} = [ split(/,/, $self->{'no-category'}) ];

# files location
$self->{'ca-cert-file'} =
Expand Down

0 comments on commit 58bf107

Please sign in to comment.