Skip to content

Commit

Permalink
docs(instance): fix example for image create (scaleway#1995)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <[email protected]>
  • Loading branch information
scaleway-bot and remyleone authored Oct 21, 2021
1 parent 4470607 commit 5000773
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw instance image create [arg=value ...]

EXAMPLES:
Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)
scw instance image create name=foobar root-volume=11111111-1111-1111-1111-111111111111 arch=x86_64
Create an image named 'foobar' for x86_64 instances from the given snapshot ID
scw instance image create name=foobar snapshot-id=11111111-1111-1111-1111-111111111111 arch=x86_64

ARGS:
[name=<generated>] Name of the image
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ scw instance image create [arg=value ...]
**Examples:**


Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)
Create an image named 'foobar' for x86_64 instances from the given snapshot ID
```
scw instance image create name=foobar root-volume=11111111-1111-1111-1111-111111111111 arch=x86_64
scw instance image create name=foobar snapshot-id=11111111-1111-1111-1111-111111111111 arch=x86_64
```


Expand Down
4 changes: 2 additions & 2 deletions internal/namespaces/instance/v1/instance_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,8 @@ func instanceImageCreate() *core.Command {
},
Examples: []*core.Example{
{
Short: "Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)",
ArgsJSON: `{"arch":"x86_64","name":"foobar","root_volume":"11111111-1111-1111-1111-111111111111"}`,
Short: "Create an image named 'foobar' for x86_64 instances from the given snapshot ID",
Raw: `scw instance image create name=foobar snapshot-id=11111111-1111-1111-1111-111111111111 arch=x86_64`,
},
},
}
Expand Down

0 comments on commit 5000773

Please sign in to comment.