From d6bcf2dee86e7ce8298bc626398a6db03e4af817 Mon Sep 17 00:00:00 2001 From: Miciah Masters Date: Fri, 28 Nov 2014 02:20:53 -0500 Subject: [PATCH] rhc-list-ports: Delete scaled gears output code Delete the code that prints the list of scaled gears because it has been broken for a over a year and has no users. Commit 487e6e238d1d4ce68fd7df852f50ed5c161cf4ea broke the code in question by replacing haproxy/conf/gear-registry.db with gear-registry/gear-registry.json. --- node-util/bin/rhc-list-ports | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/node-util/bin/rhc-list-ports b/node-util/bin/rhc-list-ports index 91c9c4fc099..463d5f0e399 100755 --- a/node-util/bin/rhc-list-ports +++ b/node-util/bin/rhc-list-ports @@ -37,20 +37,3 @@ fi for binding in "${!local_bindings[@]}"; do echo "${local_bindings[${binding}]} -> ${binding}" done | sort -d -k1 1>&2 - -# Report scaling information -gear_registry_locations=( - "./haproxy-1.4/conf/gear-registry.db" - "./haproxy/conf/gear-registry.db" -) - -for candidate_registry in "${gear_registry_locations[@]}"; do - if [ -f "$candidate_registry" ]; then - gear_registry=$candidate_registry - break - fi -done - -if [ ! -z "$gear_registry" ]; then - cat "$gear_registry" | while read line; do echo "$line" | awk -F"@" '{ printf "SCALE%s\n", $1; }' ; done -fi