Browse Source

Fix IPS array variable expansion

$IPS only expands to the first ip address in the array:

justin@box:~$ declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
justin@box:~$ echo $IPS
10.10.1.3
justin@box:~$ echo ${IPS[@]}
10.10.1.3 10.10.1.4 10.10.1.5
pull/1235/head
Justin 7 years ago
committed by GitHub
parent
commit
9503434d53
1 changed files with 1 additions and 1 deletions
  1. 2
      docs/getting-started.md

2
docs/getting-started.md

@ -38,7 +38,7 @@ Example inventory generator usage:
```
cp -r inventory my_inventory
declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
CONFIG_FILE=my_inventory/inventory.cfg python3 contrib/inventory_builder/inventory.py ${IPS}
CONFIG_FILE=my_inventory/inventory.cfg python3 contrib/inventory_builder/inventory.py ${IPS[@]}
```
Starting custom deployment

Loading…
Cancel
Save