Skip to content

Commit

Permalink
fix(instance): make inbound-default-policy and outbound-default-polic…
Browse files Browse the repository at this point in the history
…y optional in update security-group
  • Loading branch information
scaleway-bot committed Mar 9, 2020
1 parent 8d9afd0 commit 0158c03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ EXAMPLES:
scw instance security-group update security-group-id=11111111-1111-1111-1111-111111111111 inbound-default-policy=drop

ARGS:
[zone] Zone to target. If none is passed will use default zone from the config
security-group-id ID of the security group to update
[name]
[description]
[stateful]
[inbound-default-policy=accept] (accept | drop)
[outbound-default-policy=accept] (accept | drop)
[organization-default]
[zone] Zone to target. If none is passed will use default zone from the config
security-group-id ID of the security group to update
[name]
[description]
[stateful]
[inbound-default-policy] (accept | drop)
[outbound-default-policy] (accept | drop)
[organization-default]

FLAGS:
-h, --help help for update
Expand Down
2 changes: 0 additions & 2 deletions internal/namespaces/instance/v1/custom_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,10 @@ func securityGroupUpdateCommand() *core.Command {
},
{
Name: "inbound-default-policy",
Default: core.DefaultValueSetter("accept"),
EnumValues: []string{"accept", "drop"},
},
{
Name: "outbound-default-policy",
Default: core.DefaultValueSetter("accept"),
EnumValues: []string{"accept", "drop"},
},
{
Expand Down

0 comments on commit 0158c03

Please sign in to comment.