Skip to content

Commit f4ea884

Browse files
fix snapshot importing
Signed-off-by: Ashish Amarnath <[email protected]>
1 parent bf1107b commit f4ea884

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)