Skip to content

Commit

Permalink
Ensure the most up-to-date resource info is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Veebers committed Aug 7, 2018
1 parent ee648b8 commit 036fb7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/charmstore/cache.go
Expand Up @@ -70,7 +70,8 @@ func (cfo cacheForOperations) set(chRes charmresource.Resource, reader io.ReadCl
return resource.Resource{}, nil, errors.Trace(err)
}

_, reader, err = cfo.OpenResource(res.Name)
// Make sure to use the potentially updated resource details.
res, reader, err = cfo.OpenResource(res.Name)
if err != nil {
return resource.Resource{}, nil, errors.Trace(err)
}
Expand Down

0 comments on commit 036fb7c

Please sign in to comment.