diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-29 14:41:15 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-29 14:41:15 +0000 |
commit | 722a5a6cbb969923df8969a4def7bcb2a8299c49 (patch) | |
tree | a8916dbd0cec75be423d00959512636ff1f9b6f6 | |
parent | e2f1a56e80c43d69b6e725e5620864229ecdba7f (diff) | |
parent | e7e8161c921ab9e6bc194d53b2e390f25749e710 (diff) |
Merge "Sort ResourceGroup resource list" into stable/ocata
-rwxr-xr-x | deployed-server/scripts/get-occ-config.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deployed-server/scripts/get-occ-config.sh b/deployed-server/scripts/get-occ-config.sh index 6c196f97..d0cc4dff 100755 --- a/deployed-server/scripts/get-occ-config.sh +++ b/deployed-server/scripts/get-occ-config.sh @@ -63,7 +63,7 @@ for role in $OVERCLOUD_ROLES; do rg_stack=$(openstack stack resource show overcloud $role -c physical_resource_id -f value) done - stacks=$(openstack stack resource list $rg_stack -c physical_resource_id -f value) + stacks=$(openstack stack resource list $rg_stack -c resource_name -c physical_resource_id -f json | jq -r "sort_by(.resource_name) | .[] | .physical_resource_id") i=0 |