We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cbef546 + 00d4fe0 commit 5d988aeCopy full SHA for 5d988ae
agent/tool-scripts/openshift-metrics
@@ -115,7 +115,7 @@ tool_stderr_file=$tool_output_dir/$tool-stderr.txt
115
## create directory to save the keys from openshift master, hosts
116
mkdir -p /run/pbench/keys
117
## parse openshift inventory file
118
-cat "$inventory" | awk -F " " '{ print $1 }' | sed -n '/masters/,/^$/p' | grep "ec2" > /run/pbench/inv_hosts
+cat "$inventory" | awk -F " " '{ print $1 }' | sed -n '/^\[masters\]/,/^$/p' | awk '{if (NR!=1) {print}}' > /run/pbench/inv_hosts
119
case "$mode" in
120
install)
121
;;
0 commit comments