From 33dfd43d1b9df0833889c5ea6296af7f2fc9b7e0 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 17 Apr 2017 20:56:52 -0400 Subject: [PATCH] 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 --- docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index caf4485ae..5c61ef764 100644 --- a/docs/getting-started.md +++ b/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