[maas] Make boot-source-selection ops idempotent 95/56695/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:59:31 +0000 (17:59 +0000)
commite59133c6b910fee71f63855afcb2e39993de7bf8
tree9fa8ba7dbc234d9bdaa5420864d088ff230db2ed
parent39c9a0bee27faf0313c79a58103704e94ac91ede
[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>
(cherry picked from commit d7ab894b988d8dd6fe49714e0d8d6077e08ebb16)
mcp/patches/0016-Set-boot-source-selections.patch