Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeatdell committed Nov 20, 2024
1 parent 3b3c2b7 commit 3f7d4e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions samples/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
nasName: "nas-server"
# zone is a cluster availability zone to which the PowerFlex system should be bound.
# The mapping is one-to-one - the PowerFlex system cannot belong to more than one zone.
# Ideally, the PowerFlex system and cluster nodes that define the availability zone would be
# Ideally, the PowerFlex system and cluster nodes that define the availability zone would be
# geographically co-located.
# Optional: true
# Default value: none
Expand All @@ -52,7 +52,7 @@
# Optional: true
# Default value: ""
pool: "pool1"
# # To add more PowerFlex systems, uncomment the following lines and provide the required values
# To add more PowerFlex systems, uncomment the following lines and provide the required values
# - username: "admin"
# password: "password"
# systemID: "2b11bb111111bb1b"
Expand All @@ -64,4 +64,4 @@
# domains:
# - name: "domain001"
# - name: "domain002"
# pool: "pool002"
# pool: "pool002"
12 changes: 6 additions & 6 deletions service/step_defs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3421,28 +3421,28 @@ func (f *feature) aCorrectNodeGetVolumeStatsResponse() error {
return nil
}

func (f *feature) iCallNodeUnstageVolumeWith(error string) error {
func (f *feature) iCallNodeUnstageVolumeWith(err string) error {
// Save the ephemeralStagingMountPath to restore below
ephemeralPath := ephemeralStagingMountPath
header := metadata.New(map[string]string{"csi.requestid": "1"})
if error == "NoRequestID" {
if err == "NoRequestID" {
header = metadata.New(map[string]string{"csi.requestid": ""})
}
ctx := metadata.NewIncomingContext(context.Background(), header)
req := new(csi.NodeUnstageVolumeRequest)
req.VolumeId = goodVolumeID
if error == "NoVolumeID" {
if err == "NoVolumeID" {
req.VolumeId = ""
}
req.StagingTargetPath = datadir
if error == "NoStagingTarget" {
if err == "NoStagingTarget" {
req.StagingTargetPath = ""
}
if error == "UnmountError" {
if err == "UnmountError" {
req.StagingTargetPath = "/tmp"
gofsutil.GOFSMock.InduceUnmountError = true
}
if error == "EphemeralVolume" {
if err == "EphemeralVolume" {
// Create an ephemeral volume id
ephemeralStagingMountPath = "test/"
err := os.MkdirAll("test"+"/"+goodVolumeID+"/id", 0o777)
Expand Down

0 comments on commit 3f7d4e9

Please sign in to comment.