Commit 72336705 authored by Elijah Grubb's avatar Elijah Grubb

Fixed issue where os images aren't in an array

parent ab483221
......@@ -4040,8 +4040,6 @@ sub analyzeImage($$)
TBDebugTimeStamp("inspecting image $image...");
($code,$json) = getClient()->image_inspect($image);
TBDebugTimeStamp("inspecting image $image code:\n".Dumper($code));
TBDebugTimeStamp("inspecting image $image json:\n".Dumper($json));
if ($code) {
warn("inspect $image failed -- attempting to continue anyway!");
}
......@@ -4050,6 +4048,9 @@ sub analyzeImage($$)
if (ref($json) eq 'ARRAY') {
$jstate = $json->[0];
}
else {
$jstate = $json;
}
$jstate = $jstate->{'Config'};
if (exists($jstate->{'Cmd'})) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment