Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Migrate to flyctl/api as the source of truth #247

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DAlperin
Copy link
Member

No description provided.

@@ -91,18 +88,19 @@ func (r *flyVolumeResource) Create(ctx context.Context, req resource.CreateReque
diags := req.Plan.Get(ctx, &data)
resp.Diagnostics.Append(diags...)

q, err := graphql.CreateVolume(ctx, *r.client, data.Appid.ValueString(), data.Name.ValueString(), data.Region.ValueString(), int(data.Size.ValueInt64()))
machineAPI := apiv1.NewMachineAPI(r.config.httpClient, r.config.httpEndpoint)
q, err := machineAPI.CreateVolume(ctx, data.Appid.ValueString(), data.Name.ValueString(), data.Region.ValueString(), int(data.Size.ValueInt64()))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think AppId and Name are in the wrong order here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants