Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Do not overwrite the loaded tarball image #240

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ func getImageForName(imageName string) (pkgutil.Image, error) {
}
elapsed := time.Now().Sub(start)
logrus.Infof("retrieving image from tar took %f seconds", elapsed.Seconds())
}

if strings.HasPrefix(imageName, DaemonPrefix) {
} else if strings.HasPrefix(imageName, DaemonPrefix) {
// remove the daemon prefix
imageName = strings.Replace(imageName, DaemonPrefix, "", -1)

Expand Down