1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Pass non-nil PrivilegeFunc to ImagePull

This commit is contained in:
Josh Curl
2016-06-29 20:05:23 -07:00
parent 6b47d33df2
commit b9eba9d290
2 changed files with 4 additions and 2 deletions

View File

@@ -60,7 +60,9 @@ func pullImage(ctx context.Context, client client.APIClient, service *Service, i
timeoutsRemaining := 3
for i := 0; i < 100; i++ {
responseBody, err := client.ImagePull(ctx, options, nil)
responseBody, err := client.ImagePull(ctx, options, func() (string, error) {
return encodedAuth, nil
})
if err != nil {
logrus.Errorf("Failed to pull image %s: %v", image, err)
return err