Change logic for boot-sources import
* Maas have 'default' switch, in case no boot-source
configured => switch forcelly to default one.
Our old flow was:
delete all sources=> add mirror one => ran import.
In rare cases, during time 'delete <=> add new' maas engine
might add default one mirror, which broke mirror logic.
So, we would try to delete all 'boot_sources_delete_all_others'
exactly after source add.
* Misc: add maasng() simple wrapper.
Closes-Bug: PROD-21614 (PROD:21614)
Change-Id: I8c783b5ec12ac046f41453678586a4eebcfcb96b
3 files changed