Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

rhc-list-ports: Delete scaled gears output code #6049

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions node-util/bin/rhc-list-ports
Original file line number Diff line number Diff line change
Expand Up @@ -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