Skip to content

Commit

Permalink
shell-local: fix supported_os error check
Browse files Browse the repository at this point in the history
Commit 34ed5d9 which consists of linting fixes essentially had an
error in the code and the error check for `supported_os' was inverted in
this commit, making shell-local fail on all supported OSes now.

We re-invert this condition so it behaves as it used to.
  • Loading branch information
lbajolet-hashicorp committed Jan 27, 2023
1 parent 404e1f9 commit 6f32b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell-local/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func Validate(config *Config) error {
break
}
}
if supported_os {
if !supported_os {
return fmt.Errorf("Invalid OS specified in only_on: '%s'\n"+
"Supported OS names: %s", provided_os, strings.Join(supportedSyslist, ", "))
}
Expand Down

0 comments on commit 6f32b7f

Please sign in to comment.