Skip to content

Commit 8f3580b

Browse files
committed
Change output order
1 parent ee3ff79 commit 8f3580b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/actions/aufn-test/run.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function check_lab_vm_connections() {
2222
echo "Checking VM connections..."
2323
cat ssh_list.txt
2424
while IFS= read -r line; do
25-
ip=$(echo "$line" | awk '{print $2}')
26-
name=$(echo "$line" | awk '{print $3}')
25+
ip=$(echo "$line" | awk '{print $3}')
26+
name=$(echo "$line" | awk '{print $2}')
2727
password=$(echo "$line" | awk '{print $5}')
2828

2929
echo "Connecting to $name ($password) at $ip ..."
@@ -38,8 +38,8 @@ function validate_lab_vms() {
3838
rm -f failed-labs.txt
3939

4040
while IFS= read -r line; do
41-
ip=$(echo "$line" | awk '{print $2}')
42-
name=$(echo "$line" | awk '{print $3}')
41+
ip=$(echo "$line" | awk '{print $3}')
42+
name=$(echo "$line" | awk '{print $2}')
4343
password=$(echo "$line" | awk '{print $5}')
4444

4545
echo "Validating $name at $ip..."
@@ -102,8 +102,8 @@ function taint_and_reapply() {
102102
# mapfile -t ssh_lines < ssh_list.txt
103103
# for i in "${!ssh_lines[@]}"; do
104104
# line="${ssh_lines[$i]}"
105-
# ip=$(echo "$line" | awk '{print $2}')
106-
# name=$(echo "$line" | awk '{print $3}')
105+
# ip=$(echo "$line" | awk '{print $3}')
106+
# name=$(echo "$line" | awk '{print $2}')
107107
# password=$(echo "$line" | awk '{print $5}')
108108

109109
# sshpass -p "$password" ssh -o StrictHostKeyChecking=no \
@@ -116,8 +116,8 @@ function run_universe_from_seed() {
116116
if [[ "$AU_FROM_SEED" != "true" ]]; then return; fi
117117
echo "Launching a-universe-from-seed..."
118118
while IFS= read -r line; do
119-
ip=$(echo "$line" | awk '{print $2}')
120-
name=$(echo "$line" | awk '{print $3}')
119+
ip=$(echo "$line" | awk '{print $3}')
120+
name=$(echo "$line" | awk '{print $2}')
121121
password=$(echo "$line" | awk '{print $5}')
122122

123123
sshpass -p "$password" ssh -o StrictHostKeyChecking=no \

.github/workflows/deploy-aufn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
description: Total number of Lab VMs to deploy
1818
type: number
1919
required: true
20-
default: 1
20+
default: 2
2121
bas_pwd: # When using in workflow use ::add-mask::$ to mask the password
2222
description: Password for bastion access
2323
type: string

output.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
output "labs" {
2-
value = join("\n", formatlist("ssh %s %s # %s #", openstack_compute_instance_v2.lab.*.access_ip_v4, openstack_compute_instance_v2.lab.*.name, openstack_compute_instance_v2.lab.*.id))
2+
value = join("\n", formatlist("ssh %s %s # %s #", openstack_compute_instance_v2.lab.*.name, openstack_compute_instance_v2.lab.*.access_ip_v4, openstack_compute_instance_v2.lab.*.id))
33
}
44

55
output "registry" {

0 commit comments

Comments
 (0)