Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionut Balutoiu committed May 12, 2022
1 parent 209347e commit 3c36854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/external.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ type External struct {
func (e *External) ExecutablePath() (string, error) {
execPath := filepath.Join(e.ProviderDir, "garm-external-provider")
if !filepath.IsAbs(execPath) {
return "", fmt.Errorf("executable path must be an absolut epath")
return "", fmt.Errorf("executable path must be an absolute path")
}
return filepath.Join(e.ProviderDir, "garm-external-provider"), nil
}

func (e *External) Validate() error {
if e.ConfigFile != "" {
if _, err := os.Stat(e.ConfigFile); err != nil {
return fmt.Errorf("failed to access cofig file %s", e.ConfigFile)
return fmt.Errorf("failed to access config file %s", e.ConfigFile)
}
if !filepath.IsAbs(e.ConfigFile) {
return fmt.Errorf("path to config file must be an absolute path")
Expand Down

0 comments on commit 3c36854

Please sign in to comment.