"maas admin boot-resources create" fails in 3.0

I suspect there is an issue with the 3.0 snap and the command for copying an image:

root@server:/home# maas admin boot-resources create name=‘esxi/7.0’ title=‘VMware ESXi 7.0’ architecture=‘amd64/generic’ filetype=‘ddgz’ content@=/home/vmware-esxi.dd.gz
usage: maas [-h] COMMAND …

optional arguments:
-h, --help show this help message and exit

drill down:
COMMAND
login Log in to a remote API, and remember its description and credentials.
logout Log out of a remote API, purging any stored credentials.
list List remote APIs that have been logged-in to.
refresh Refresh the API descriptions of all profiles.
init Initialise MAAS in the specified run mode.
config View or change controller configuration.
status Status of controller services.
migrate Perform migrations on connected database.
apikey Used to manage a user’s API keys. Shows existing keys unless --generate or --delete is >passed.
configauth Configure external authentication.
createadmin Create a MAAS administrator account.
changepassword
Change a MAAS user’s password.
admin Interact with http://10.238.200.1:5240/MAAS/api/2.0/

https://maas.io/

[Errno 13] Permission denied: ‘/home/vmware-esxi.dd.gz’

The command fails when tried with user admin or root, with the file located in /home, /media or /root. I’m guessing that it’s trying to write to the snap somehow, which fails.

Instructions taken from here: Provision ESXi with MAAS

I’ve confirmed that it fails with another image too. It can’t read the image in /root, (file not found), but can find it in /home or /tmp, just not upload it.

[Errno 13] Permission denied: ‘/home/debian-10.8.0-amd64.tgz’