Skip to content

Commit fb4c933

Browse files
committed
remove ent tag
1 parent 11be5c0 commit fb4c933

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

coderd/provisionerdaemons.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import (
88
"github.com/coder/coder/v2/coderd/httpapi"
99
"github.com/coder/coder/v2/coderd/httpmw"
1010
"github.com/coder/coder/v2/coderd/provisionerdserver"
11+
"github.com/coder/coder/v2/coderd/util/ptr"
1112
"github.com/coder/coder/v2/codersdk"
1213
)
1314

1415
// @Summary Get provisioner daemons
1516
// @ID get-provisioner-daemons
1617
// @Security CoderSessionToken
1718
// @Produce json
18-
// @Tags Enterprise
1919
// @Param organization path string true "Organization ID" format(uuid)
2020
// @Param tags query object false "Provisioner tags to filter by (JSON of the form {'tag1':'value1','tag2':'value2'})"
2121
// @Success 200 {array} codersdk.ProvisionerDaemon
@@ -70,9 +70,8 @@ func (api *API) provisionerDaemons(rw http.ResponseWriter, r *http.Request) {
7070
}
7171

7272
// Add optional fields.
73-
status := codersdk.ProvisionerDaemonStatus(dbDaemon.Status)
7473
pd.KeyName = &dbDaemon.KeyName
75-
pd.Status = &status
74+
pd.Status = ptr.Ref(codersdk.ProvisionerDaemonStatus(dbDaemon.Status))
7675
pd.CurrentJob = currentJob
7776
pd.PreviousJob = previousJob
7877

0 commit comments

Comments
 (0)