Browse Source

Merge pull request #10704 from alexanderzobnin/fix-backend-plugin-table-rows

plugins: return table with empty rows array insteaf of nil
Carl Bergquist 8 years ago
parent
commit
1303dc7ac0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/plugins/datasource/wrapper/datasource_plugin_wrapper.go

+ 1 - 0
pkg/plugins/datasource/wrapper/datasource_plugin_wrapper.go

@@ -125,6 +125,7 @@ func (tw *DatasourcePluginWrapper) mapTable(t *datasource.Table) (*tsdb.Table, e
 		})
 		})
 	}
 	}
 
 
+	table.Rows = make([]tsdb.RowValues, 0)
 	for _, r := range t.GetRows() {
 	for _, r := range t.GetRows() {
 		row := tsdb.RowValues{}
 		row := tsdb.RowValues{}
 		for _, rv := range r.Values {
 		for _, rv := range r.Values {