Skip to content

Commit c21822f

Browse files
committed
Add documentation
1 parent 3c1d8d3 commit c21822f

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
subcategory: "Instances"
3+
page_title: "Scaleway: scaleway_instance_server_action"
4+
---
5+
6+
# scaleway_instance_server_action (Action)
7+
8+
<!-- action schema generated by tfplugindocs -->
9+
## Schema
10+
11+
### Required
12+
13+
- `action` (String) Type of action to perform
14+
- `server_id` (String) Server id to send the action to
15+
16+
### Optional
17+
18+
- `wait` (Boolean) Wait for server to finish action
19+
- `zone` (String) Zone of server to send the action to
20+
21+

provider/providers.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package provider
33
import (
44
"context"
55

6+
"github.com/hashicorp/terraform-plugin-framework/provider"
67
"github.com/hashicorp/terraform-plugin-framework/providerserver"
78
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
89
"github.com/hashicorp/terraform-plugin-mux/tf5to6server"
@@ -18,7 +19,12 @@ func NewProviderList(ctx context.Context, providerConfig *Config) ([]func() tfpr
1819
return nil, err
1920
}
2021

21-
frameworkProvider := NewFrameworkProvider(providerConfig.Meta)
22+
var frameworkProvider func() provider.Provider
23+
if providerConfig != nil {
24+
frameworkProvider = NewFrameworkProvider(providerConfig.Meta)
25+
} else {
26+
frameworkProvider = NewFrameworkProvider(nil)
27+
}
2228

2329
return []func() tfprotov6.ProviderServer{
2430
// Provider using terraform-plugin-framework
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{- /*gotype: github.com/hashicorp/terraform-plugin-docs/internal/provider.ActionTemplateType */ -}}
2+
---
3+
subcategory: "Instances"
4+
page_title: "Scaleway: scaleway_instance_server_action"
5+
---
6+
7+
# scaleway_instance_server_action (Action)
8+
9+
{{ .SchemaMarkdown }}

0 commit comments

Comments
 (0)