Provide correct command to fetchChefCertificatesFunc
fetchChefCertificatesFunc expects the knife command path, not the chef command path. Update the code to pass the correct command's path to the method.
This commit is contained in:
parent
ebfcaed3c1
commit
a97f1a557f
|
@ -143,13 +143,13 @@ func (r *ResourceProvisioner) Apply(
|
||||||
case "linux":
|
case "linux":
|
||||||
p.installChefClient = p.linuxInstallChefClient
|
p.installChefClient = p.linuxInstallChefClient
|
||||||
p.createConfigFiles = p.linuxCreateConfigFiles
|
p.createConfigFiles = p.linuxCreateConfigFiles
|
||||||
p.fetchChefCertificates = p.fetchChefCertificatesFunc(linuxChefCmd, linuxConfDir)
|
p.fetchChefCertificates = p.fetchChefCertificatesFunc(linuxKnifeCmd, linuxConfDir)
|
||||||
p.runChefClient = p.runChefClientFunc(linuxChefCmd, linuxConfDir)
|
p.runChefClient = p.runChefClientFunc(linuxChefCmd, linuxConfDir)
|
||||||
p.useSudo = !p.PreventSudo && s.Ephemeral.ConnInfo["user"] != "root"
|
p.useSudo = !p.PreventSudo && s.Ephemeral.ConnInfo["user"] != "root"
|
||||||
case "windows":
|
case "windows":
|
||||||
p.installChefClient = p.windowsInstallChefClient
|
p.installChefClient = p.windowsInstallChefClient
|
||||||
p.createConfigFiles = p.windowsCreateConfigFiles
|
p.createConfigFiles = p.windowsCreateConfigFiles
|
||||||
p.fetchChefCertificates = p.fetchChefCertificatesFunc(windowsChefCmd, windowsConfDir)
|
p.fetchChefCertificates = p.fetchChefCertificatesFunc(windowsKnifeCmd, windowsConfDir)
|
||||||
p.runChefClient = p.runChefClientFunc(windowsChefCmd, windowsConfDir)
|
p.runChefClient = p.runChefClientFunc(windowsChefCmd, windowsConfDir)
|
||||||
p.useSudo = false
|
p.useSudo = false
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue