Skip to content

Commit

Permalink
circonus_worksheet: add an empty order to smart_queries.
Browse files Browse the repository at this point in the history
This is a required workaround until circonus-labs/circonus-gometrics/pull/79
is merged.
  • Loading branch information
sean- committed Sep 29, 2018
1 parent 3a18f1b commit b8b2f1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions circonus/resource_circonus_worksheet.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func (w *circonusWorksheet) ParseConfig(d *schema.ResourceData) error {

for _, queryListRaw := range queriesList {
var query api.WorksheetSmartQuery
query.Order = []string{}
queryAttrs := queryListRaw.(map[string]interface{})

if v, found := queryAttrs[queryNameAttr]; found {
Expand Down

0 comments on commit b8b2f1e

Please sign in to comment.