diff --git a/common/shell-local/run.go b/common/shell-local/run.go index 705a5ff90..51bb047b0 100644 --- a/common/shell-local/run.go +++ b/common/shell-local/run.go @@ -106,9 +106,6 @@ func createInlineScriptFile(config *Config) (string, error) { log.Printf("[INFO] (shell-local): Prepending inline script with %s", shebang) writer.WriteString(shebang) } - config.Ctx.Data = &EnvVarsTemplate{ - WinRMPassword: getWinRMPassword(config.PackerBuildName), - } // generate context so you can interpolate the command config.Ctx.Data = &EnvVarsTemplate{