1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add comment for permission and fix wrong format variable

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2014-10-02 17:41:57 -07:00
parent 7c88e8f13d
commit 22e59009e4
2 changed files with 2 additions and 1 deletions

View file

@ -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 {

View file

@ -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
}