File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ jobs:
112
112
- name : Convert one compiler to legacy
113
113
timeout-minutes : 120
114
114
run : |
115
- primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .uri ' spec/fixtures/litmus_inventory.yaml)
116
- compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .uri ' spec/fixtures/litmus_inventory.yaml | head -n 1)
115
+ primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .name ' spec/fixtures/litmus_inventory.yaml)
116
+ compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .name ' spec/fixtures/litmus_inventory.yaml | head -n 1)
117
117
echo ::group::convert_compiler_to_legacy
118
118
bundle exec bolt plan run peadm::convert_compiler_to_legacy \
119
119
--inventoryfile spec/fixtures/litmus_inventory.yaml \
@@ -126,8 +126,8 @@ jobs:
126
126
- name : Check if compiler is converted
127
127
timeout-minutes : 120
128
128
run : |
129
- primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .uri ' spec/fixtures/litmus_inventory.yaml)
130
- compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .uri ' spec/fixtures/litmus_inventory.yaml | head -n 1)
129
+ primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .name ' spec/fixtures/litmus_inventory.yaml)
130
+ compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .name ' spec/fixtures/litmus_inventory.yaml | head -n 1)
131
131
legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' bolt task run peadm::get_peadm_config -t $primary --no-host-key-check --format json)
132
132
if [ "$compiler" != "$legacy_compiler" ]; then
133
133
echo "Compiler conversion failed"
You can’t perform that action at this time.
0 commit comments