From b3b56ff59d1402ba2188778e683d5b3725fb941e Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 24 Oct 2012 13:41:34 +0100 Subject: [PATCH] heat-keystone-setup workaround keystone output reordering Folsom version of keystoneclient orders the columns for keystone user-list differently, so we need to detect the new format to extract the correct field Fixes #273 Change-Id: I46f653dd3a8f7b5a68648fbd72671f95b386a547 Signed-off-by: Steven Hardy --- bin/heat-keystone-setup | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bin/heat-keystone-setup b/bin/heat-keystone-setup index a9085556..74691bd0 100755 --- a/bin/heat-keystone-setup +++ b/bin/heat-keystone-setup @@ -44,10 +44,21 @@ get_id () { get_data 1 id 2 "$@" } +get_column_num() { + local name=$1 + shift + $@ | awk -F'|' "NR == 2 { for (i=2; i&2 -- 2.45.2