@@ -50,7 +50,7 @@ coder providers create my-provider --hostname=https://provider.example.com --clu
50
50
RunE : func (cmd * cobra.Command , args []string ) error {
51
51
ctx := cmd .Context ()
52
52
53
- client , err := newClient (ctx )
53
+ client , err := newClient (ctx , true )
54
54
if err != nil {
55
55
return err
56
56
}
@@ -143,7 +143,7 @@ coder providers ls`,
143
143
RunE : func (cmd * cobra.Command , args []string ) error {
144
144
ctx := cmd .Context ()
145
145
146
- client , err := newClient (ctx )
146
+ client , err := newClient (ctx , true )
147
147
if err != nil {
148
148
return err
149
149
}
@@ -174,7 +174,7 @@ func deleteProviderCmd() *cobra.Command {
174
174
coder providers rm my-workspace-provider` ,
175
175
RunE : func (cmd * cobra.Command , args []string ) error {
176
176
ctx := cmd .Context ()
177
- client , err := newClient (ctx )
177
+ client , err := newClient (ctx , true )
178
178
if err != nil {
179
179
return err
180
180
}
@@ -232,7 +232,7 @@ func cordonProviderCmd() *cobra.Command {
232
232
coder providers cordon my-workspace-provider --reason "limit cloud clost"` ,
233
233
RunE : func (cmd * cobra.Command , args []string ) error {
234
234
ctx := cmd .Context ()
235
- client , err := newClient (ctx )
235
+ client , err := newClient (ctx , true )
236
236
if err != nil {
237
237
return err
238
238
}
@@ -265,7 +265,7 @@ func unCordonProviderCmd() *cobra.Command {
265
265
coder providers uncordon my-workspace-provider` ,
266
266
RunE : func (cmd * cobra.Command , args []string ) error {
267
267
ctx := cmd .Context ()
268
- client , err := newClient (ctx )
268
+ client , err := newClient (ctx , true )
269
269
if err != nil {
270
270
return err
271
271
}
@@ -296,7 +296,7 @@ func renameProviderCmd() *cobra.Command {
296
296
coder providers rename build-in us-east-1` ,
297
297
RunE : func (cmd * cobra.Command , args []string ) error {
298
298
ctx := cmd .Context ()
299
- client , err := newClient (ctx )
299
+ client , err := newClient (ctx , true )
300
300
if err != nil {
301
301
return err
302
302
}
0 commit comments