Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/destroy/libvirt/libvirt_prefix_deprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// returns true, when the name should be handled.
type filterFunc func(name string) bool

// ClusterNamePrefixFilter returns true for name
// ClusterNamePrefixFilter returns true for names
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change could be made down on L30.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and it's odd that the AlwaysTrueFilter does not always return true. :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change could be made down on L30.

Fixed there too with cd617f8 -> dd82979.

// that are prefixed with clustername.
// `clustername` cannot be empty.
var ClusterNamePrefixFilter = func(clustername string) filterFunc {
Expand All @@ -27,7 +27,7 @@ var ClusterNamePrefixFilter = func(clustername string) filterFunc {
}

// AlwaysTrueFilter returns true for all
// name except `default`.
// names except `default`.
var AlwaysTrueFilter = func() filterFunc {
return func(name string) bool {
if name == "default" {
Expand Down