summaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/maas/machines/mark_broken_fixed.sls
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-02-17 18:01:57 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-02-17 21:04:09 +0100
commit81561126307f15d4f65a743ed2431ea8c713a921 (patch)
tree12d90ee09e13e06e491dd21cbe4d8659139bca4e /mcp/salt-formulas/maas/machines/mark_broken_fixed.sls
parent30993030ea4b5a35ab4ae9d0aeb6be85c1e259c3 (diff)
[MaaS] Override failed testing by default
Some nodes fail automatic testing done by MaaS during commissioning, although running the testing suites one more time manually works. For now, just override all 'failed testing' nodes unconditionally. JIRA: FUEL-333 Change-Id: I13d3ee3d82550524480aa53aa8752ab90aa940cd Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/salt-formulas/maas/machines/mark_broken_fixed.sls')
-rw-r--r--mcp/salt-formulas/maas/machines/mark_broken_fixed.sls1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcp/salt-formulas/maas/machines/mark_broken_fixed.sls b/mcp/salt-formulas/maas/machines/mark_broken_fixed.sls
index 17a7df8d8..3983729e7 100644
--- a/mcp/salt-formulas/maas/machines/mark_broken_fixed.sls
+++ b/mcp/salt-formulas/maas/machines/mark_broken_fixed.sls
@@ -10,6 +10,7 @@
maas_login_admin:
cmd.run:
- name: "maas-region apikey --username {{ region.admin.username }} > /var/lib/maas/.maas_credentials"
+ - unless: 'test -e /var/lib/maas/.maas_credentials'
# TODO: implement mark_broken_fixed_machine via _modules/maas.py
mark_broken_fixed_machine: