Fix oras v2 trying to parse empty tmp file as JSON
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
parent
4aa31dcc21
commit
a86f542860
|
@ -39,7 +39,7 @@ func ClientGenerator(tlsConfig *tls.Config, isLogin, insecureHTTP bool) (*regist
|
|||
}
|
||||
|
||||
var errs []error
|
||||
rClient, err := newClient(credentialsFile.Name(), tlsConfig, insecureHTTP)
|
||||
rClient, err := newClient("", tlsConfig, insecureHTTP)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
// attempt to delete the temporary file
|
||||
|
|
Loading…
Reference in New Issue