address op state review feedback (#2453)

* address op state review feedback
This commit is contained in:
Irena Rindos authored and GitHub committed 2022-09-16 09:13:37 -04:00
1 parent c73a13aa3e
commit 821d8317dc
6 files changed
+122 -55

No files matched your search

+4 -4
View File
@@ -44,7 +44,7 @@ type options struct {
WithCreateControllerLedActivationToken bool
withReleaseVersion string
withOperationalState string
withExcludeShutdownWorkers bool
withActiveWorkers bool
}
func getDefaultOptions() options {
@@ -215,9 +215,9 @@ func WithOperationalState(state string) Option {
}
}
// WithExcludeShutdownWorkers provides an optional to filter out workers in shutdown
func WithExcludeShutdownWorkers(exclude bool) Option {
// WithActiveWorkers provides an optional filter to only include active workers
func WithActiveWorkers(withActive bool) Option {
return func(o *options) {
o.withExcludeShutdownWorkers = exclude
o.withActiveWorkers = withActive
}
}