Maas tags inside cloud-init (maas 3.5.1)

So the docs have an example to check tags during cloud-init install:
How to use cloud-init with MAAS: step-by-step examples - Docs - Canonical MAAS | Discourse
However, that does not seem to work for the latest maas.
In particular, there is no ‘tag-list’ command and maas is not installed on a new vm.
So, what is the appropriate method to get a machine’s tags within cloud-init?
Specifically, I want to tag certain LXD VMs to have a specific GPU pass-thru and was looking to use tags to flag and implement for that.

1 Like