Skip to content

Commit

Permalink
Update Common.pm
Browse files Browse the repository at this point in the history
Fix IPADDR in addVirtualMachine function
  • Loading branch information
fbomj committed Dec 26, 2016
1 parent 090e3cb commit b93f0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ocsinventory/Agent/Common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ sub addVirtualMachine {

my $content = {};

foreach my $key (qw/CORES MEMORY NAME UUID STATUS SUBSYSTEM VMTYPE VCPU VMID/) {
foreach my $key (qw/CORES IPADDR MEMORY NAME UUID STATUS SUBSYSTEM VMTYPE VCPU VMID/) {
if (exists $args->{$key}) {
$content->{$key}[0] = $args->{$key} if $args->{$key};
}
Expand Down

0 comments on commit b93f0cb

Please sign in to comment.