@@ -50,7 +50,7 @@ coder providers create my-provider --hostname=https://provider.example.com --clu
5050 RunE : func (cmd * cobra.Command , args []string ) error {
5151 ctx := cmd .Context ()
5252
53- client , err := newClient (ctx )
53+ client , err := newClient (ctx , true )
5454 if err != nil {
5555 return err
5656 }
@@ -143,7 +143,7 @@ coder providers ls`,
143143 RunE : func (cmd * cobra.Command , args []string ) error {
144144 ctx := cmd .Context ()
145145
146- client , err := newClient (ctx )
146+ client , err := newClient (ctx , true )
147147 if err != nil {
148148 return err
149149 }
@@ -174,7 +174,7 @@ func deleteProviderCmd() *cobra.Command {
174174coder providers rm my-workspace-provider` ,
175175 RunE : func (cmd * cobra.Command , args []string ) error {
176176 ctx := cmd .Context ()
177- client , err := newClient (ctx )
177+ client , err := newClient (ctx , true )
178178 if err != nil {
179179 return err
180180 }
@@ -232,7 +232,7 @@ func cordonProviderCmd() *cobra.Command {
232232coder providers cordon my-workspace-provider --reason "limit cloud clost"` ,
233233 RunE : func (cmd * cobra.Command , args []string ) error {
234234 ctx := cmd .Context ()
235- client , err := newClient (ctx )
235+ client , err := newClient (ctx , true )
236236 if err != nil {
237237 return err
238238 }
@@ -265,7 +265,7 @@ func unCordonProviderCmd() *cobra.Command {
265265coder providers uncordon my-workspace-provider` ,
266266 RunE : func (cmd * cobra.Command , args []string ) error {
267267 ctx := cmd .Context ()
268- client , err := newClient (ctx )
268+ client , err := newClient (ctx , true )
269269 if err != nil {
270270 return err
271271 }
@@ -296,7 +296,7 @@ func renameProviderCmd() *cobra.Command {
296296coder providers rename build-in us-east-1` ,
297297 RunE : func (cmd * cobra.Command , args []string ) error {
298298 ctx := cmd .Context ()
299- client , err := newClient (ctx )
299+ client , err := newClient (ctx , true )
300300 if err != nil {
301301 return err
302302 }
0 commit comments