From 22e59009e491dc8b32b512e0d2297662d278af45 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 2 Oct 2014 17:41:57 -0700 Subject: [PATCH] Add comment for permission and fix wrong format variable Signed-off-by: Derek McGowan (github: dmcgowan) --- graph/pull.go | 1 + registry/endpoint.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/graph/pull.go b/graph/pull.go index 01cdb5d9d..25da378bc 100644 --- a/graph/pull.go +++ b/graph/pull.go @@ -55,6 +55,7 @@ func (s *TagStore) verifyManifest(eng *engine.Engine, manifestBytes []byte) (*re job.Args = append(job.Args, namespace) job.Setenv("PublicKey", string(b)) + // Check key has read/write permission (0x03) job.SetenvInt("Permission", 0x03) job.Stdout.Add(stdoutBuffer) if err = job.Run(); err != nil { diff --git a/registry/endpoint.go b/registry/endpoint.go index 12df9e0c9..5313a8079 100644 --- a/registry/endpoint.go +++ b/registry/endpoint.go @@ -124,6 +124,6 @@ func (e Endpoint) Ping() (RegistryInfo, error) { // there is a header set, and it is not "true" or "1", so assume fails info.Standalone = false } - log.Debugf("RegistryInfo.Standalone: %q", info.Standalone) + log.Debugf("RegistryInfo.Standalone: %t", info.Standalone) return info, nil }