diff --git a/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden b/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden index f7e07d0ba5..0edc9965e0 100644 --- a/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.golden @@ -26,7 +26,7 @@ ARGS: [description] Description of the security group [project-id] Project ID to use. If none is passed the default project ID will be used [tags.{index}] Tags of the security group - [project-default=false] Whether this security group becomes the default security group for new Instances + [project-default] Whether this security group becomes the default security group for new Instances [stateful=true] Whether the security group is stateful or not [inbound-default-policy=accept] Default policy for inbound rules (unknown_policy | accept | drop) [outbound-default-policy=accept] Default policy for outbound rules (unknown_policy | accept | drop) @@ -35,7 +35,7 @@ ARGS: [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3) DEPRECATED ARGS: - [organization-default=false] Defines whether this security group becomes the default security group for new Instances + [organization-default] Defines whether this security group becomes the default security group for new Instances FLAGS: -h, --help help for create diff --git a/docs/commands/instance.md b/docs/commands/instance.md index ce2d5ddefd..3fa6436e7a 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -1121,8 +1121,8 @@ scw instance security-group create [arg=value ...] | description | | Description of the security group | | project-id | | Project ID to use. If none is passed the default project ID will be used | | tags.{index} | | Tags of the security group | -| ~~organization-default~~ | Deprecated
Default: `false` | Defines whether this security group becomes the default security group for new Instances | -| project-default | Default: `false` | Whether this security group becomes the default security group for new Instances | +| ~~organization-default~~ | Deprecated | Defines whether this security group becomes the default security group for new Instances | +| project-default | | Whether this security group becomes the default security group for new Instances | | stateful | Default: `true` | Whether the security group is stateful or not | | inbound-default-policy | Default: `accept`
One of: `unknown_policy`, `accept`, `drop` | Default policy for inbound rules | | outbound-default-policy | Default: `accept`
One of: `unknown_policy`, `accept`, `drop` | Default policy for outbound rules | diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 8ec84ef5f2..157540eda0 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -2108,7 +2108,6 @@ func instanceSecurityGroupCreate() *core.Command { Required: false, Deprecated: true, Positional: false, - Default: core.DefaultValueSetter("false"), }, { Name: "project-default", @@ -2116,7 +2115,6 @@ func instanceSecurityGroupCreate() *core.Command { Required: false, Deprecated: false, Positional: false, - Default: core.DefaultValueSetter("false"), }, { Name: "stateful",