Skip to content

Commit

Permalink
Fixed $DIMENSIONS parameter being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Teye Heimans committed Jul 16, 2018
1 parent 89f1df8 commit 82e7219
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion check_cloudwatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,11 @@ COMMAND="${COMMAND} --start-time ${START_TIME}";
COMMAND="${COMMAND} --end-time ${END_TIME}";
COMMAND="${COMMAND} --period ${SECS}";
COMMAND="${COMMAND} --statistics ${STATISTICS}";
${DIMENSIONS} && COMMAND="${COMMAND} --dimensions ${DIMENSIONS}";

if [[ "${DIMENSIONS}" != "" ]];
then
COMMAND="${COMMAND} --dimensions ${DIMENSIONS}";
fi

if [[ "${PROFILE}" != "" ]];
then
Expand Down

0 comments on commit 82e7219

Please sign in to comment.