Skip to content

Commit

Permalink
ensure last_state_content is a hash ref
Browse files Browse the repository at this point in the history
Reported-by: Tomás Abad <tabad@sescam.jccm.es>
  • Loading branch information
Gonéri Le Bouder committed Aug 6, 2012
1 parent 7bf1d3f commit c5bc11c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/FusionInventory/Agent/Task/Inventory/Inventory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ sub computeChecksum {
$self->{last_state_file}
);
}
if (ref($self->{last_state_content}) ne 'HASH') {
$self->{last_state_file} = {};
}
} else {
$logger->debug(
"last state file '$self->{last_state_file}' doesn't exist"
Expand Down

0 comments on commit c5bc11c

Please sign in to comment.