Skip to content

Commit f1693c1

Browse files
committed
feature: fixed describe command
1 parent 91346ed commit f1693c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/cmd/beta/security-group/describe/describe.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.SecurityGroup)
134134
table.AddSeparator()
135135

136136
if name := resp.Name; name != nil {
137-
table.AddRow("NAME", name)
137+
table.AddRow("NAME", *name)
138138
table.AddSeparator()
139139
}
140140

141141
if description := resp.Description; description != nil {
142-
table.AddRow("DESCRIPTION", description)
142+
table.AddRow("DESCRIPTION", *description)
143143
table.AddSeparator()
144144
}
145145

@@ -153,7 +153,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.SecurityGroup)
153153
}
154154

155155
if stateful := resp.Stateful; stateful != nil {
156-
table.AddRow("STATEFUL", stateful)
156+
table.AddRow("STATEFUL", *stateful)
157157
table.AddSeparator()
158158
}
159159

internal/cmd/beta/security-group/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const argNameGroupId = "argGroupId"
3030

3131
func NewCmd(p *print.Printer) *cobra.Command {
3232
cmd := &cobra.Command{
33-
Use: "Update",
33+
Use: "update",
3434
Short: "Update a security group",
3535
Long: "Update a named security group",
3636
Args: args.SingleArg(argNameGroupId, utils.ValidateUUID),

0 commit comments

Comments
 (0)