[maas] Make boot-source-selection ops idempotent 85/56685/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 26 Apr 2018 17:25:21 +0000 (19:25 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 26 Apr 2018 17:25:21 +0000 (19:25 +0200)
commitd7ab894b988d8dd6fe49714e0d8d6077e08ebb16
treee589b39e23774266a5ec876a45d055477a921b73
parent2e4aa7c2e95a4eaee40a0a10e107a75494d76a5c
[maas] Make boot-source-selection ops idempotent

- add `unless` clause;
- instead of adding a new boot sources, update the existing one,
  assuming standard MaaS installation (always updates id '1');

Change-Id: I2db92a3b14d0588095c69545cbb6977ca109613e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/patches/0016-Set-boot-source-selections.patch