fix: remove filter validation when no filters are provided (#28)
the check currently prevents Boundary from unsetting filter
This commit is contained in:
1 parent
877d285eef
commit
bcb928e4f9
1 file changed
-5
@@ -617,11 +617,6 @@ func validateSet(s *hostsets.HostSet) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
badFields := make(map[string]string)
|
badFields := make(map[string]string)
|
||||||
_, filterSet := attrMap[ConstListInstancesFilter]
|
|
||||||
|
|
||||||
if filterSet && len(attrs.Filters) == 0 {
|
|
||||||
badFields[fmt.Sprintf("attributes.%s", ConstListInstancesFilter)] = "must not be empty"
|
|
||||||
}
|
|
||||||
|
|
||||||
for f := range attrMap {
|
for f := range attrMap {
|
||||||
if _, ok := allowedSetFields[f]; !ok {
|
if _, ok := allowedSetFields[f]; !ok {
|
||||||
|
|||||||
Reference in new issue
Block a user