Skip to content

Commit

Permalink
fix stats collector backend type
Browse files Browse the repository at this point in the history
  • Loading branch information
arti-shalb committed Nov 18, 2023
1 parent f814592 commit 5ab6f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/cdev/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ func Run() {
if p != nil {
st.ProjectID = p.UUID
if len(p.Backends) == 0 || p.Backends[p.StateBackendName] == nil {
st.BackendType = p.Backends[p.StateBackendName].Provider()
} else {
st.BackendType = "null"
} else {
st.BackendType = p.Backends[p.StateBackendName].Provider()
}
} else {
st.ProjectID = "null"
Expand Down

0 comments on commit 5ab6f87

Please sign in to comment.