Преглед на файлове

Add comment for permission and fix wrong format variable

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
Derek McGowan преди 10 години
родител
ревизия
22e59009e4
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      graph/pull.go
  2. 1 1
      registry/endpoint.go

+ 1 - 0
graph/pull.go

@@ -55,6 +55,7 @@ func (s *TagStore) verifyManifest(eng *engine.Engine, manifestBytes []byte) (*re
 
 
 		job.Args = append(job.Args, namespace)
 		job.Args = append(job.Args, namespace)
 		job.Setenv("PublicKey", string(b))
 		job.Setenv("PublicKey", string(b))
+		// Check key has read/write permission (0x03)
 		job.SetenvInt("Permission", 0x03)
 		job.SetenvInt("Permission", 0x03)
 		job.Stdout.Add(stdoutBuffer)
 		job.Stdout.Add(stdoutBuffer)
 		if err = job.Run(); err != nil {
 		if err = job.Run(); err != nil {

+ 1 - 1
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
 		// there is a header set, and it is not "true" or "1", so assume fails
 		info.Standalone = false
 		info.Standalone = false
 	}
 	}
-	log.Debugf("RegistryInfo.Standalone: %q", info.Standalone)
+	log.Debugf("RegistryInfo.Standalone: %t", info.Standalone)
 	return info, nil
 	return info, nil
 }
 }