Migrate to non-deprecated functions of api/types/filters
- Use `Contains` instead of `Include` - Use `ToJSON` instead of `ToParam` - Remove usage of `ParseFlag` as it is deprecated too Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@ -140,7 +140,7 @@ loop:
|
||||
}
|
||||
|
||||
func updateNodeFilter(ctx context.Context, client client.APIClient, filter filters.Args) error {
|
||||
if filter.Include("node") {
|
||||
if filter.Contains("node") {
|
||||
nodeFilters := filter.Get("node")
|
||||
for _, nodeFilter := range nodeFilters {
|
||||
nodeReference, err := node.Reference(ctx, client, nodeFilter)
|
||||
|
||||
Reference in New Issue
Block a user