Skip to content

Commit

Permalink
Removed AWS/DO/GCloud inventory types
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Mar 8, 2018
1 parent c4a6eeb commit de7cb34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/projects/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func AddInventory(w http.ResponseWriter, r *http.Request) {
}

switch inventory.Type {
case "static", "file", "aws", "do", "gcloud":
case "static", "file":
break
default:
w.WriteHeader(http.StatusBadRequest)
Expand Down Expand Up @@ -139,7 +139,7 @@ func UpdateInventory(w http.ResponseWriter, r *http.Request) {
}

switch inventory.Type {
case "static", "file", "aws", "do", "gcloud":
case "static", "file":
break
default:
w.WriteHeader(http.StatusBadRequest)
Expand Down
3 changes: 0 additions & 3 deletions public/html/projects/inventory/add.pug
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
select.form-control(ng-model="inventory.type" ng-init="inventory.type = inventory.type || 'static'")
option(value="static") Static
option(value="file") File
option(disabled value="aws") AWS
option(disabled value="do") DigitalOcean
option(disabled value="gcloud") Google Cloud

.form-group(ng-if="inventory.type == 'file'")
label.control-label.col-sm-4 Path to inventory file
Expand Down

0 comments on commit de7cb34

Please sign in to comment.