Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: clean up additional typos found in CI. #1554

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions commands/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func RunFunctionsGet(c *CmdConfig) error {
fetchCode := codeFlag || saveFlag || saveAsFlag != ""

sls := c.Serverless()
action, parms, err := sls.GetFunction(c.Args[0], fetchCode)
action, params, err := sls.GetFunction(c.Args[0], fetchCode)
if err != nil {
return err
}
Expand All @@ -111,7 +111,7 @@ func RunFunctionsGet(c *CmdConfig) error {
}

if saveEnvFlag != "" || saveEnvJSONFlag != "" {
return doSaveFunctionEnvironment(saveEnvFlag, saveEnvJSONFlag, parms)
return doSaveFunctionEnvironment(saveEnvFlag, saveEnvJSONFlag, params)
}

if codeFlag {
Expand Down Expand Up @@ -156,14 +156,14 @@ func doSaveFunctionCode(action whisk.Action, save bool, saveAs string) error {

// doSaveFunctionEnvironment saves the environment variables for a function to file,
// either as key-value pairs or JSON. Could do both if both are specified.
func doSaveFunctionEnvironment(saveEnv string, saveEnvJSON string, parms []do.FunctionParameter) error {
func doSaveFunctionEnvironment(saveEnv string, saveEnvJSON string, params []do.FunctionParameter) error {
keyVals := []string{}
envMap := map[string]string{}
for _, parm := range parms {
if parm.Init {
keyVal := parm.Key + "=" + parm.Value
for _, p := range params {
if p.Init {
keyVal := p.Key + "=" + p.Value
keyVals = append(keyVals, keyVal)
envMap[parm.Key] = parm.Value
envMap[p.Key] = p.Value
}
}

Expand Down
2 changes: 1 addition & 1 deletion commands/volume_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func VolumeAction() *Command {

cmdVolumeActionsList := CmdBuilder(cmd, RunVolumeActionsList, "list <volume-id>", "Retrieve a list of actions taken on a volume", `Retrieves a list of actions taken on a volume. The following details are provided:`+actionDetail, Writer,
aliasOpt("ls"), displayerType(&displayers.Action{}))
cmdVolumeActionsList.Example = `The following example retrieves a list of actions taken on a volume with the UUID ` + "`" + `f81d4fae-7dec-11d0-a765-00a0c91e6bf6` + "`" + `. The command also uses the ` + "`" + `--format` + "`" + ` flag to return ony the resource ID and status for each action listed: doctl compute volume-action list f81d4fae-7dec-11d0-a765-00a0c91e6bf6 --format ResourceID,Status`
cmdVolumeActionsList.Example = `The following example retrieves a list of actions taken on a volume with the UUID ` + "`" + `f81d4fae-7dec-11d0-a765-00a0c91e6bf6` + "`" + `. The command also uses the ` + "`" + `--format` + "`" + ` flag to return only the resource ID and status for each action listed: doctl compute volume-action list f81d4fae-7dec-11d0-a765-00a0c91e6bf6 --format ResourceID,Status`

cmdRunVolumeAttach := CmdBuilder(cmd, RunVolumeAttach, "attach <volume-id> <droplet-id>", "Attach a volume to a Droplet", `Attaches a block storage volume to a Droplet.

Expand Down
Loading