Comment 1 for bug 1854430

Revision history for this message
Anastasia (anastasia-macmood) wrote :

For Juju to detect if a MAAS machine is locked, we need to examine a GET on the machine - a GET of the machine includes locked as a boolean, https://maas.io/docs/api#machine. Juju needs to verify if a machine is locked before trying to do anything to the machine, for example, prior to removing a machine.

There's no distinction in MAAS API - at the moment, if Juju tries to do anything to the machine, a generic Permission Denied is thrown.