From 8ba9150da2056f734221cc3e992570d4f91a96b4 Mon Sep 17 00:00:00 2001 From: Ara Pulido Date: Thu, 28 Dec 2017 12:38:28 +0100 Subject: [PATCH] If the hyper config file is not set, the AuthConfig should be empty --- providers/hypersh/util.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/providers/hypersh/util.go b/providers/hypersh/util.go index c5c3f902b..0405c7216 100644 --- a/providers/hypersh/util.go +++ b/providers/hypersh/util.go @@ -333,8 +333,10 @@ func (p *HyperProvider) ensureImage(image string) error { // Resolve the Repository name from fqn to RepositoryInfo repoInfo, err := registry.ParseRepositoryInfo(distributionRef) - - authConfig := p.resolveAuthConfig(p.configFile.AuthConfigs, repoInfo.Index) + var authConfig types.AuthConfig + if p.configFile != nil { + authConfig = p.resolveAuthConfig(p.configFile.AuthConfigs, repoInfo.Index) + } encodedAuth, err := p.encodeAuthToBase64(authConfig) if err != nil { return err