File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cfn-resources/flex-cluster/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set -o pipefail
1010
1111function usage {
1212 echo " usage:$0 <project_name>"
13- echo " Generates test input files for flex cluster using an existing project "
13+ echo " Generates test input files for flex cluster"
1414 exit 0
1515}
1616
3030projectName=" ${1} "
3131projectId=$( atlas projects list --output json | jq --arg NAME " ${projectName} " -r ' .results[] | select(.name==$NAME) | .id' )
3232if [ -z " $projectId " ]; then
33- echo " ERROR: Project \ "${projectName} \" does not exist. Please create the project first. "
34- exit 1
33+ projectId= $( atlas projects create " ${projectName} " --output=json | jq -r ' .id ' )
34+ echo -e " Created project \" ${projectName} \" with id: ${projectId} \n "
3535else
3636 echo -e " FOUND project \" ${projectName} \" with id: ${projectId} \n"
3737fi
You can’t perform that action at this time.
0 commit comments