Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 0a9b2449 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

lib/facter: FIX docker Facts

parent 5e50f0dc
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ if $? == 0
$docker_containers_stopped = line[/^\sStopped:\s*([0-9]*)/,1].strip
end
if (line[/^Images/])
$docker_containers_images = line[/^Images:\s*([0-9]*)/,1].strip
$docker_images = line[/^Images:\s*([0-9]*)/,1].strip
end
if (line[/^Server\sVersion/])
$docker_version = line[/^Server\sVersion:\s*([0-9.]*)/,1].strip
......@@ -64,6 +64,8 @@ if $? == 0
end
end
$docker_compose_version=''
$test_docker_compose=%x(which docker-compose 2>/dev/null)
if $? == 0
$docker_compose_info = %x(docker-compose version 2>/dev/null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment