New packages added to hack/.linted_packages

This commit is contained in:
shashidharatd 2017-03-02 11:44:42 +05:30
parent a14f8dc346
commit f2fa2f6dd6
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,7 @@ func main() {
// MountInChroot is to run mount within chroot with the passing root directory
func mountInChroot(rootfsPath string, args []string) error {
if _, err := os.Stat(rootfsPath); os.IsNotExist(err) {
return fmt.Errorf("Path <%s> does not exist.\n", rootfsPath)
return fmt.Errorf("path <%s> does not exist", rootfsPath)
}
args = append([]string{rootfsPath, mountCmd}, args...)
output, err := exec.Command(chrootCmd, args...).CombinedOutput()
@ -73,7 +73,7 @@ func mountInChroot(rootfsPath string, args []string) error {
if !strings.EqualFold(string(output), nfsRPCBindErrMsg) {
// Mount failed but not because of RPC bind error
return fmt.Errorf("Mount failed: %v\nMounting command: %s\nMounting arguments: %v\nOutput: %s\n", err, chrootCmd, args, string(output))
return fmt.Errorf("mount failed: %v\nMounting command: %s\nMounting arguments: %v\nOutput: %s", err, chrootCmd, args, string(output))
}
// Mount failed because it is NFS V3 and we need to run rpcBind

View File

@ -1,4 +1,5 @@
cluster/addons/fluentd-elasticsearch/es-image
cluster/gce/gci/mounter
cluster/images/etcd/attachlease
cluster/images/etcd/rollback
cmd/clicheck
@ -385,6 +386,7 @@ staging/src/k8s.io/kube-aggregator/pkg/client/listers/apiregistration/v1alpha1
staging/src/k8s.io/sample-apiserver
staging/src/k8s.io/sample-apiserver/pkg/apis/wardle/install
test/e2e/perftype
test/e2e_federation/upgrades
test/e2e_node/runner/local
test/images/clusterapi-tester
test/images/entrypoint-tester