Skip to content

Commit

Permalink
misc: clean up additional typos found in CI. (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsomething authored Jul 18, 2024
1 parent 8615667 commit 88deac4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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

0 comments on commit 88deac4

Please sign in to comment.