Skip to content

OWLS-86630 - scalingAction.sh needs adjustment in finding latest API version #2130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
fixes issue in get_domain_api_version when using jq
  • Loading branch information
alai8 committed Jan 6, 2021
commit 1a580c5b2a6bdc0ffb0237d641e93cb1ea8639f5
5 changes: 2 additions & 3 deletions src/scripts/scaling/scalingAction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ function get_domain_api_version() {
# Find domain version
local domain_api_version
if [ -x "$(command -v jq)" ]; then
local extractVersionCmd="(.groups[] | select (.name == \"weblogic\.oracle\") | .preferredVersion.version)"
trace "jq using $extractVersionCmd"
domain_api_version=$(echo "${APIS}" | jq "${extractVersionCmd}")
local extractVersionCmd="(.groups[] | select (.name == \"weblogic.oracle\") | .preferredVersion.version)"
domain_api_version=$(echo "${APIS}" | jq -r "${extractVersionCmd}")
else
cat > cmds-$$.py << INPUT
import sys, json
Expand Down