We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f4f5a commit 8b10cc2Copy full SHA for 8b10cc2
internal/namespaces/applesilicon/v1alpha1/custom_server_ssh.go
@@ -50,16 +50,16 @@ func serverSSHCommand() *core.Command {
50
},
51
core.ZoneArgSpec(),
52
53
- Run: instanceServerSSHRun,
+ Run: serverSSHRun,
54
}
55
56
57
-func instanceServerSSHRun(ctx context.Context, argsI interface{}) (i interface{}, e error) {
+func serverSSHRun(ctx context.Context, argsI interface{}) (i interface{}, e error) {
58
args := argsI.(*serverSSHConnectRequest)
59
60
client := core.ExtractClient(ctx)
61
- apiInstance := applesilicon.NewAPI(client)
62
- serverResp, err := apiInstance.GetServer(&applesilicon.GetServerRequest{
+ asAPI := applesilicon.NewAPI(client)
+ serverResp, err := asAPI.GetServer(&applesilicon.GetServerRequest{
63
Zone: args.Zone,
64
ServerID: args.ServerID,
65
})
0 commit comments