Skip to content

Commit

Permalink
change node grabbing to be more consistent (#2007)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Luzarraga <[email protected]>
  • Loading branch information
bluzarraga authored May 23, 2024
1 parent 5c9c1b7 commit 93d8be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preload_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function prereq() {
error "Namespace $TO_NAMESPACE does not exist (or oc command line is not logged in)"
exit 1
fi
mongo_node=$(${OC} get pods -n $FROM_NAMESPACE -o wide | grep icp-mongodb-0 | awk '{print $7}')
mongo_node=$(${OC} get pods icp-mongodb-0 -n $FROM_NAMESPACE -o=jsonpath='{.spec.nodeName}')
architecture=$(${OC} describe node $mongo_node | grep "Architecture:" | awk '{print $2}')
if [[ $architecture == "s390x" ]] || [[ $architecture == "ppc64le" ]]; then
z_or_power_ENV="true"
Expand Down

0 comments on commit 93d8be2

Please sign in to comment.