Skip to content

Commit

Permalink
add a missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonéri Le Bouder committed Aug 22, 2011
1 parent f991254 commit 5c54f93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/FusionInventory/Agent/Task/Deploy.pm
Expand Up @@ -91,10 +91,9 @@ sub _validateAnswer {
$$msgRef = "associatedFiles should be an hash";
return;
}

foreach my $k (%{$answer->{associatedFiles}}) {
foreach my $k (keys %{$answer->{associatedFiles}}) {
foreach (qw/mirrors multiparts name/) {
if (!defined($answer->{associatedFiles}{$k}{$_})) {
if (!defined($answer->{associatedFiles}->{$k}->{$_})) {
$$msgRef = "Missing key `$_' in associatedFiles";
return;
}
Expand Down

0 comments on commit 5c54f93

Please sign in to comment.