Skip to content

Commit dae8896

Browse files
sameshaiarahamad
authored andcommitted
GetSnapshotByName filter fixed by VPC IaaS (#86)
Signed-off-by: Sameer Shaikh <sameer.shaikh@ibm.com> Signed-off-by: Arashad Ahamad <arahamad@in.ibm.com>
1 parent c2ecaa2 commit dae8896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/vpcclient/vpcfilevolume/get_snapshot.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ func (ss *SnapshotService) GetSnapshotByName(shareID string, snapshotName string
6363
defer util.TimeTracker("GetSnapshotByName", time.Now())
6464

6565
// Get the snapshot details for a single snapshot, ListSnapshotFilters will return only 1 snapshot in list
66-
//filters := &models.LisSnapshotFilters{Name: snapshotName} //Revert this once GHE https://github.com/IBM/ibmcloud-volume-file-vpc/issues/85 is resolved
67-
snapshots, err := ss.ListSnapshots(shareID, 1, "", nil, ctxLogger)
66+
filters := &models.LisSnapshotFilters{Name: snapshotName}
67+
snapshots, err := ss.ListSnapshots(shareID, 1, "", filters, ctxLogger)
6868
if err != nil {
6969
return nil, err
7070
}

0 commit comments

Comments
 (0)