Commit 0b1867d
committed
Test for the presence of "provisioned" server
rather the the absense of lines with "provisioned".
If the oc command fails the test will still evaluate to False.
Also mask failures from the second "oc get bmh" command so they
wont cause the script to exit.1 parent 4f77b17 commit 0b1867d
File tree
1 file changed
+8
-6
lines changed- data/data/bootstrap/baremetal/files/usr/local/bin
1 file changed
+8
-6
lines changedLines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments