Skip to content

Commit d8f2ec2

Browse files
committed
fix(server): security group attach/detach now correctly print to stdout
1 parent a107df6 commit d8f2ec2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/cmd/server/security-group/attach/attach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8080
return fmt.Errorf("attach security group to server: %w", err)
8181
}
8282

83-
params.Printer.Info("Attached security group %q to server %q\n", securityGroupLabel, serverLabel)
83+
params.Printer.Outputf("Attached security group %q to server %q\n", securityGroupLabel, serverLabel)
8484

8585
return nil
8686
},

internal/cmd/server/security-group/detach/detach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8080
return fmt.Errorf("detach security group from server: %w", err)
8181
}
8282

83-
params.Printer.Info("Detached security group %q from server %q\n", securityGroupLabel, serverLabel)
83+
params.Printer.Outputf("Detached security group %q from server %q\n", securityGroupLabel, serverLabel)
8484

8585
return nil
8686
},

0 commit comments

Comments
 (0)