Skip to content

Commit

Permalink
Merge pull request #239 from mysterytony/master
Browse files Browse the repository at this point in the history
Fix a typo in a variable name
  • Loading branch information
pleshakov authored Feb 13, 2018
2 parents 7758022 + b401537 commit 7885a8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx-controller/nginx/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type NginxController struct {
local bool
healthStatus bool
nginxConfTemplatePath string
nginxIngressTempatePath string
nginxIngressTemplatePath string
}

// IngressNginxConfig describes an NGINX configuration
Expand Down Expand Up @@ -141,7 +141,7 @@ func NewNginxController(nginxConfPath string, local bool, healthStatus bool, ngi
local: local,
healthStatus: healthStatus,
nginxConfTemplatePath: nginxConfTemplatePath,
nginxIngressTempatePath: nginxIngressTemplatePath,
nginxIngressTemplatePath: nginxIngressTemplatePath,
}

cfg := &NginxMainConfig{
Expand Down Expand Up @@ -250,7 +250,7 @@ func (nginx *NginxController) getSecretFileName(name string) string {
}

func (nginx *NginxController) templateIt(config IngressNginxConfig, filename string) {
tmpl, err := template.New(nginx.nginxIngressTempatePath).ParseFiles(nginx.nginxIngressTempatePath)
tmpl, err := template.New(nginx.nginxIngressTemplatePath).ParseFiles(nginx.nginxIngressTemplatePath)
if err != nil {
glog.Fatalf("Failed to parse template file: %v", err)
}
Expand Down

0 comments on commit 7885a8f

Please sign in to comment.