Skip to content

Commit

Permalink
compute instance update: check for err when creating client
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Dec 13, 2024
1 parent a650819 commit 686e349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/instance_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func (c *instanceUpdateCmd) cmdRun(cmd *cobra.Command, _ []string) error {
if cmd.Flags().Changed(mustCLICommandFlagName(c, &c.Protection)) {
var client *v3.Client
client, err = switchClientZoneV3(ctx, globalstate.EgoscaleV3Client, v3.ZoneName(c.Zone))
if err != nil {
return
}

var instanceID v3.UUID
var op *v3.Operation
Expand Down

0 comments on commit 686e349

Please sign in to comment.