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

Commit

Permalink
Make services optional.
Browse files Browse the repository at this point in the history
Supersedes #76
  • Loading branch information
DAlperin committed Aug 31, 2022
1 parent 8ffdbdb commit e4754d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/machine_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (mr flyMachineResourceType) GetSchema(context.Context) (tfsdk.Schema, diag.
},
"handlers": {
MarkdownDescription: "How the edge should process requests",
Required: true,
Optional: true,
Type: types.ListType{ElemType: types.StringType},
},
}),
Expand Down Expand Up @@ -333,7 +333,7 @@ func (mr flyMachineResource) Create(ctx context.Context, req resource.CreateRequ
if data.Services == nil {
tfservices = nil
}
tflog.Info(ctx, fmt.Sprintf("how many cpus? %d but requested %d", newMachine.Config.Guest.Cpus, data.Cpus.Value));
tflog.Info(ctx, fmt.Sprintf("how many cpus? %d but requested %d", newMachine.Config.Guest.Cpus, data.Cpus.Value))
data = flyMachineResourceData{
Name: types.String{Value: newMachine.Name},
Region: types.String{Value: newMachine.Region},
Expand Down

0 comments on commit e4754d0

Please sign in to comment.