Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sivakumar subraani committed Nov 18, 2024
1 parent 15b9d21 commit bd1789f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/executor/nfs/nfsbkpresources.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ func uploadResource(
}
}
} else if len(backup.Spec.ExcludeResourceTypes) != 0 {
isPersistentVolumeType := IsPVCInExcludeResourceType(backup)
exclude := backup.Spec.ExcludeResourceTypes
if isPersistentVolumeType {
if IsPVCInExcludeResourceType(backup) {
exclude = append(exclude, "PersistentVolume")
}
excludeTypeObjects, _, err := rc.GetResourcesExcludingTypes(
Expand Down

0 comments on commit bd1789f

Please sign in to comment.