Skip to content

Commit

Permalink
Avoid create tag from metadata req of snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jichenjc committed Jun 17, 2021
1 parent f88591c commit 8beb08a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/csi/cinder/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,6 @@ func (cs *controllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateS
} else {
// Add cluster ID to the snapshot metadata
properties := map[string]string{cinderCSIClusterIDKey: cs.Driver.cluster}
for mKey, mVal := range req.Parameters {
properties[mKey] = mVal
}

// TODO: Delegate the check to openstack itself and ignore the conflict
snap, err = cs.Cloud.CreateSnapshot(name, volumeId, &properties)
Expand Down

0 comments on commit 8beb08a

Please sign in to comment.