Skip to content

Commit

Permalink
change location of "sync" data member set (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
gailazar300 authored Oct 13, 2021
1 parent f00dfff commit 4505850
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions distribution/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,13 @@ func (sm *DistributionServicesManager) DeleteReleaseBundle(params services.Delet
deleteBundleService := services.NewDeleteReleaseBundleService(sm.client)
deleteBundleService.DistDetails = sm.config.GetServiceDetails()
deleteBundleService.DryRun = sm.config.IsDryRun()
deleteBundleService.MaxWaitMinutes = params.MaxWaitMinutes
deleteBundleService.Sync = params.Sync
return deleteBundleService.DeleteDistribution(params)
}

func (sm *DistributionServicesManager) DeleteLocalReleaseBundle(params services.DeleteDistributionParams) error {
deleteLocalBundleService := services.NewDeleteLocalDistributionService(sm.client)
deleteLocalBundleService.DistDetails = sm.config.GetServiceDetails()
deleteLocalBundleService.DryRun = sm.config.IsDryRun()
deleteLocalBundleService.Sync = params.Sync
deleteLocalBundleService.MaxWaitMinutes = params.MaxWaitMinutes
return deleteLocalBundleService.DeleteDistribution(params)
}

Expand Down
2 changes: 2 additions & 0 deletions distribution/services/deletelocal.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func (dlr *DeleteLocalReleaseBundleService) GetDistDetails() auth.ServiceDetails
}

func (dlr *DeleteLocalReleaseBundleService) DeleteDistribution(deleteDistributionParams DeleteDistributionParams) error {
dlr.Sync = deleteDistributionParams.Sync
dlr.MaxWaitMinutes = deleteDistributionParams.MaxWaitMinutes
return dlr.execDeleteLocalDistribution(deleteDistributionParams.Name, deleteDistributionParams.Version)
}

Expand Down
3 changes: 2 additions & 1 deletion distribution/services/deleteremote.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func (dr *DeleteReleaseBundleService) DeleteDistribution(deleteDistributionParam
},
OnSuccess: onSuccess,
}

dr.Sync = deleteDistributionParams.Sync
dr.MaxWaitMinutes = deleteDistributionParams.MaxWaitMinutes
return dr.execDeleteDistribute(deleteDistributionParams.Name, deleteDistributionParams.Version, deleteDistribution)
}

Expand Down

0 comments on commit 4505850

Please sign in to comment.