@@ -68,13 +68,13 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
6868 Example : examples .Build (
6969 examples .NewExample (
7070 `Create a Valkey instance with name "my-instance" and specify plan by name and version` ,
71- "$ stackit beta valkey instance create --name my-instance --plan-name stackit-keyvalue-1.2.10-replica --version 8" ),
71+ "$ stackit valkey instance create --name my-instance --plan-name stackit-keyvalue-1.2.10-replica --version 8" ),
7272 examples .NewExample (
7373 `Create a Valkey instance with name "my-instance" and specify plan by ID` ,
74- "$ stackit beta valkey instance create --name my-instance --plan-id xxx" ),
74+ "$ stackit valkey instance create --name my-instance --plan-id xxx" ),
7575 examples .NewExample (
7676 `Create a Valkey instance with name "my-instance" and specify IP range which is allowed to access it` ,
77- "$ stackit beta valkey instance create --name my-instance --plan-id xxx --acl 1.2.3.0/24" ),
77+ "$ stackit valkey instance create --name my-instance --plan-id xxx --acl 1.2.3.0/24" ),
7878 ),
7979 RunE : func (cmd * cobra.Command , args []string ) error {
8080 ctx := context .Background ()
@@ -248,10 +248,10 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient valkey.Defau
248248}
249249
250250func outputResult (p * print.Printer , model * inputModel , projectLabel , instanceId string , resp * valkey.CreateInstanceResponse ) error {
251+ if model == nil {
252+ return fmt .Errorf ("no model passed" )
253+ }
251254 return p .OutputResult (model .OutputFormat , resp , func () error {
252- if model == nil {
253- return fmt .Errorf ("no model passed" )
254- }
255255 if resp == nil {
256256 return fmt .Errorf ("no response defined" )
257257 }
0 commit comments