 +		glog.Errorf("fail to run %q: %s", strings.Join(commandLine, " "), err)
 +		return nil, err
 +	}
++	glog.V(6).Infof("%q give the following output: %s", strings.Join(commandLine, " "), string(b))
 +
 +	var rktImages RktImageList
 +	err = json.Unmarshal(b, &rktImages)

From c6647a1f0c0a8e6f83948e2701f5e2dd7853ce26 Mon Sep 17 00:00:00 2001
From: JulienBalestra <julien.balestra@gmail.com>
Date: Wed, 30 Aug 2017 12:19:37 +0200
Subject: [PATCH] rkt image list

---
 pkg/kubelet/rkt/image.go    | 36 +++++++++++++----
 pkg/kubelet/rkt/rkt_test.go | 96 ---------------------------------------------
 2 files changed, 28 insertions(+), 104 deletions(-)

diff --git a/pkg/kubelet/rkt/image.go b/pkg/kubelet/rkt/image.go
index 3a1687b..ecae192 100644
--- a/pkg/kubelet/rkt/image.go
+++ b/pkg/kubelet/rkt/image.go
@@ -37,6 +37,7 @@ import (

 		glog.Errorf("Failed to fetch: %v", err)
 		return "", err
 	}
@@ -98,23 +99,44 @@ func (r *Runtime) GetImageRef(image kubecontainer.ImageSpec) (string, error) {
 	return images[0].Id, nil
 }
 
