Skip to content

Commit 55f7cb9

Browse files
committed
treat missing .docker/config.json as a warning, not an error
https://bugzilla.redhat.com/show_bug.cgi?id=1627669
1 parent a3024f8 commit 55f7cb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/oc/clusteradd/components/default-imagestreams/create_secret.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ func (opt *installReadyDockerConfigSecret) Install(dockerClient dockerhelper.Int
7575

7676
dockerConfigJsonBytes, err := ioutil.ReadFile(path.Join(home, ".docker", "config.json"))
7777
if err != nil {
78-
return fmt.Errorf("Error reading $HOME/.docker/config.json: %v", err)
78+
glog.Warnf("Error reading $HOME/.docker/config.json: %v, imagestream import credentials will not be setup")
79+
return nil
7980
}
8081

8182
glog.Infof("Installing %q", opt.Name())

0 commit comments

Comments
 (0)