Skip to content

Commit

Permalink
remove getTreehousesConfigValue
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jan 25, 2024
1 parent 6bbd2db commit 5791757
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/aws/dependencies/configOperations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ function getConfigAsJson(){
echo "configName is not set"
return 1
fi
echo "configName: $configName"
local allConfig=$(getTreehousesConfigValue $configName)
local allConfig=$(treehouses config | grep $configName= | sed "s/${configName}=//")
#local allConfig=$(getTreehousesConfigValue $configName)
if ! echo "$allConfig" | jq . > /dev/null 2>&1; then
echo "getTreehousesConfigValue did not return valid JSON"
return 1
Expand All @@ -20,11 +20,7 @@ function printAllConfig(){
function getValueByAttribute(){
local instanceName=$1
local attribute=$2
echo "instanceName: $instanceName"
echo "instanceName: $instanceName"
echo "attribute: $attribute"
local backet=$(getBucketByBucketKey "$(getConfigAsJson)" $instanceName)
echo "backet: $backet"
local keyName=$(echo "$backet" | \
jq -r --arg instanceName "$instanceName" \
--arg attribute "$attribute" \
Expand Down

0 comments on commit 5791757

Please sign in to comment.