Skip to content

Commit cb65edc

Browse files
committed
fix: print API error message instead of operation nil
1 parent 8bd73ca commit cb65edc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/compute/sks/sks_nodepool_update.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ func (c *sksNodepoolUpdateCmd) CmdRun(cmd *cobra.Command, _ []string) error { //
203203

204204
if updated {
205205
op, err := client.UpdateSKSNodepool(ctx, cluster.ID, nodepool.ID, updateReq)
206+
if err != nil {
207+
return err
208+
}
206209
utils.DecorateAsyncOperation(fmt.Sprintf("Updating Nodepool %q...", c.Nodepool), func() {
207210
_, err = client.Wait(ctx, op, v3.OperationStateSuccess)
208211
})

0 commit comments

Comments
 (0)