[feature] Allow API to use AND and OR boolean operators

Bug #1881922 reported by Angela Piotrowski on 2020-06-03
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Wishlist
Unassigned

Bug Description

This request is for the API to provide the ability to use both AND and OR boolean operators for various tasks, two come to mind, tags and for_hardware metadata fields in commissioning scripts. Currently, tags are read with an “or” logic. (e.g. maas $profile node-scripts read type=commissioning filters=tag1,tag2) All that has tag1 OR tag2 would be selected. This feature request is for the ability to set “and” logic, so that only if tag1 AND tag2 are true would the script run. The other example is the for_hardware metadata field in commissioning scripts. I can specify both mainboard_product and pci via the parameter today but the script would run if either the mainboard_product or the pci device was found. There are cases I might want to run a script only if the pci device is being used with a specific motherboard.

Tags: sts Edit Tag help
Victor Tapia (vtapia) on 2020-06-04
tags: added: sts
Lee Trager (ltrager) on 2020-06-04
Changed in maas:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers