Skip to content

Commit df131a6

Browse files
authored
Merge pull request #166 from ashish-amarnath/fix-snap-import
Fix snapshot importing
2 parents bf1107b + f4ea884 commit df131a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/hostpath/hostpath.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ func discoverExistingSnapshots() {
151151
for _, file := range files {
152152
isSnapshot, snapshotID := getSnapshotID(file.Name())
153153
if isSnapshot {
154-
glog.V(4).Infof("adding snapshot %s from file %s", snapshotID, file.Name())
154+
glog.V(4).Infof("adding snapshot %s from file %s", snapshotID, getSnapshotPath(snapshotID))
155155
hostPathVolumeSnapshots[snapshotID] = hostPathSnapshot{
156156
Id: snapshotID,
157-
Path: file.Name(),
157+
Path: getSnapshotPath(snapshotID),
158158
ReadyToUse: true,
159159
}
160160
}

0 commit comments

Comments
 (0)