Skip to content

Commit

Permalink
fix after schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Oct 31, 2023
1 parent 52a093d commit 2e1b265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/plural/cd.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ func (p *Plural) handleUpdateCluster(c *cli.Context) error {
return fmt.Errorf("this cluster does not exist")
}
updateAttr := gqlclient.ClusterUpdateAttributes{
Version: *existing.Version,
Version: existing.Version,
Handle: existing.Handle,
}
newHandle := c.String("handle")
Expand Down Expand Up @@ -900,7 +900,7 @@ func (p *Plural) handleCreateCluster(c *cli.Context) error {
attr.Handle = lo.ToPtr(c.String("handle"))
}
if c.String("version") != "" {
attr.Version = c.String("version")
attr.Version = lo.ToPtr(c.String("version"))
}
if c.String("provider-id") != "" {
attr.ProviderID = lo.ToPtr(c.String("provider-id"))
Expand Down

0 comments on commit 2e1b265

Please sign in to comment.