Skip to content

Commit

Permalink
Cloud costs: added provider message and error handling (#849)
Browse files Browse the repository at this point in the history
* Added provider message and error handling

* Bumped version

* Fixed typo
  • Loading branch information
jdesouza authored Dec 7, 2023
1 parent f1c3e3e commit 7ef9c91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions plugins/cloud-costs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.1.5
* Error handling for provider parameter

## 0.1.4
* Installed awscli

Expand Down
6 changes: 4 additions & 2 deletions plugins/cloud-costs/cloud-costs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ if [[ "$provider" == "gcp" ]]; then
awk '$0 == "[" {p=1} p' < /output/cloudcosts-tmp.json > /output/cloudcosts-tmp-clean.json

mv /output/cloudcosts-tmp-clean.json /output/cloudcosts.json
echo "Saved GCP costs file in /output/cloudcosts.json"
echo "Saved GCP costs file in /output/cloudcosts.json"

exit 0
fi
fi
echo "--provider - is required and should be either aws or gcp"
exit 1
2 changes: 1 addition & 1 deletion plugins/cloud-costs/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.4
0.1.5

0 comments on commit 7ef9c91

Please sign in to comment.