diff options
author | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2016-07-26 12:07:27 +0200 |
---|---|---|
committer | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2016-07-26 12:07:27 +0200 |
commit | a090ce76d2641d53e5412fc51957dd13cd1f1b61 (patch) | |
tree | 8883938f67903f79c5de334c039ec769d50fcd6d | |
parent | 3d8638a695f3337aff7dedc9e05178366a4520fe (diff) |
Use head instead of tail
When retreiving an environment id use head to get the first available
environment
Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
-rwxr-xr-x | utils/fetch_os_creds.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh index 34c81af1a..65c8af3d2 100755 --- a/utils/fetch_os_creds.sh +++ b/utils/fetch_os_creds.sh @@ -81,7 +81,7 @@ if [ "$installer_type" == "fuel" ]; then verify_connectivity $installer_ip env=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ - 'fuel env'|grep operational|tail -1|awk '{print $1}') &> /dev/null + 'fuel env'|grep operational|head -1|awk '{print $1}') &> /dev/null if [ -z $env ]; then error "No operational environment detected in Fuel" fi |