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

plugins: return table with empty rows array insteaf of nil
This commit is contained in:
Carl Bergquist 2018-02-01 09:17:29 +01:00 committed by GitHub
commit 1303dc7ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {
row := tsdb.RowValues{}
for _, rv := range r.Values {