Skip to content

Commit

Permalink
Fixes put command when there is no config file (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley authored Feb 17, 2022
1 parent 7e169cd commit bd280eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion parameterstore/parameterstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import (
)

// Delimiter is the parameter path separator character
const Delimiter = "/"
const (
Delimiter = "/"
DefaultParameterType = "SecureString"
)

// ParameterStore represents the current state and preferences of the shell
type ParameterStore struct {
Expand Down Expand Up @@ -53,6 +56,8 @@ func (ps *ParameterStore) SetDefaults(cfg config.Config) {

if cfg.Default.Type != "" {
ps.Type = cfg.Default.Type
} else {
ps.Type = DefaultParameterType
}

// The value in the $AWS_REGION env var is most preferred
Expand Down

0 comments on commit bd280eb

Please sign in to comment.