Testing this for a Container charm the operator fails on the log line because there is no Machine for container units. I have tests this to work on a new charm and can deploy and remove the model as expected. I'm not sure if this is the only place, but I think the other instances are protected by loops which will simply not happen with no machine.
I ran black and import ordering was rearranged. I can probably revert that if it matters.
Oh right, and anyone testing this it will look like the model isn't removed. It does remove it takes a really long time though. Give it 5 minutes and see if it goes away.
Testing this for a Container charm the operator fails on the log line because there is no Machine for container units. I have tests this to work on a new charm and can deploy and remove the model as expected. I'm not sure if this is the only place, but I think the other instances are protected by loops which will simply not happen with no machine.
I ran black and import ordering was rearranged. I can probably revert that if it matters.