Skip to content

Commit

Permalink
PB-8891:Remove check for IncludeResources for VM backup type (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
aks-px authored Nov 25, 2024
1 parent 963f863 commit 2864313
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/applicationmanager/controllers/applicationbackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2719,9 +2719,6 @@ func (a *ApplicationBackupController) validateApplicationBackupParameters(backup
if len(backup.Spec.ResourceTypes) != 0 {
return fmt.Errorf("resourceType should be nil for backup Object type %v", resourcecollector.PxBackupObjectType_virtualMachine)
}
if len(backup.Spec.IncludeResources) != 0 {
return fmt.Errorf("includeResources should be nil for backup Object type %v", resourcecollector.PxBackupObjectType_virtualMachine)
}
//check skipAutoExecRules is true for custom rules.
if backup.Spec.PreExecRule != "" || backup.Spec.PostExecRule != "" {
if !backup.Spec.SkipAutoExecRules {
Expand Down

0 comments on commit 2864313

Please sign in to comment.