"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Ocsinventory/Agent/Backend/Virtualization/Docker.pm" between
Ocsinventory-Unix-Agent-2.6.1.tar.gz and Ocsinventory-Unix-Agent-2.8.0.tar.gz

About: Ocsinventory-Agent is a Linux agent for OCS Inventory NG.

Docker.pm  (Ocsinventory-Unix-Agent-2.6.1):Docker.pm  (Ocsinventory-Unix-Agent-2.8.0)
package Ocsinventory::Agent::Backend::Virtualization::Docker; package Ocsinventory::Agent::Backend::Virtualization::Docker;
use strict; use strict;
sub check { sub check {
return(undef) unless -r '/usr/bin/docker'; my $params = shift;
return 1; my $common = $params->{common};
return unless $common->can_run("docker");
} }
my @image; my @image;
sub run { sub run {
my $params = shift; my $params = shift;
my $common = $params->{common}; my $common = $params->{common};
foreach my $cont (`docker ps 2>/dev/null`) { foreach my $cont (`docker ps 2>/dev/null`) {
next if ($cont =~ /^CONTAINER ID/); next if ($cont =~ /^CONTAINER ID/);
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)