mirror of https://github.com/kubernetes/kops.git
Fix comment on RemapFileAndSHA
This commit is contained in:
parent
b68f58d746
commit
df47310e41
|
|
@ -168,7 +168,8 @@ func (a *AssetBuilder) RemapImage(image string) (string, error) {
|
|||
return image, nil
|
||||
}
|
||||
|
||||
// RemapFile sets a new url location for the file, if a AssetsLocation is defined.
|
||||
// RemapFileAndSHA returns a remapped url for the file, if AssetsLocation is defined.
|
||||
// It also returns the SHA hash of the file.
|
||||
func (a *AssetBuilder) RemapFileAndSHA(fileURL *url.URL) (*url.URL, *hashing.Hash, error) {
|
||||
if fileURL == nil {
|
||||
return nil, nil, fmt.Errorf("unable to remap an nil URL")
|
||||
|
|
|
|||
Loading…
Reference in New Issue