From 4edfca32ba51a6e0e78fae241cd13343109913c9 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Sat, 2 Jan 2021 12:02:24 +0000 Subject: [PATCH] add back maas_assign_networks but not in the upper if stmt --- functions.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.sh b/functions.sh index 23e2606..db8828a 100644 --- a/functions.sh +++ b/functions.sh @@ -136,6 +136,8 @@ maas_add_node() system_id=$(echo $machine_create | jq .system_id | sed s/\"//g) ensure_machine_in_state ${system_id} "Ready" + + maas_assign_networks ${system_id} else boot_int=$(maas ${maas_profile} machine read ${system_id} | jq ".boot_interface | {mac:.mac_address, int_d:.id}")