Skip to content

Commit

Permalink
[patch] add condition for cos type prompts (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
caroazad authored May 25, 2023
1 parent 3d9b0d8 commit 488f921
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions image/cli/mascli/functions/pipeline_config_applications
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ function config_pipeline_applications() {
prompt_for_input 'COS Provider [ibm/ocs]' COS_TYPE "ibm"
[[ "$COS_TYPE" != "ibm" && "$COS_TYPE" != "ocs" ]] || break
done
prompt_for_input "IBM Cloud API Key" IBMCLOUD_APIKEY $IBMCLOUD_APIKEY
prompt_for_input "IBM Cloud Resource Group" IBMCLOUD_RESOURCEGROUP $IBMCLOUD_RESOURCEGROUP "Default"
if [[ "$COS_TYPE" == "ibm" ]]; then
prompt_for_input "IBM Cloud API Key" IBMCLOUD_APIKEY $IBMCLOUD_APIKEY
prompt_for_input "IBM Cloud Resource Group" IBMCLOUD_RESOURCEGROUP $IBMCLOUD_RESOURCEGROUP "Default"
fi
fi

if [[ "$MAS_APP_CHANNEL_PREDICT" != "" || "$MAS_APP_CHANNEL_ASSIST" != "" ]]; then
Expand Down

0 comments on commit 488f921

Please sign in to comment.