Skip to content

Commit

Permalink
Fix WinRM port bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
tintoy committed Jun 27, 2017
1 parent 407d8e5 commit 8868a79
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log - CloudControl plugins for Packer

## v0.1.3-beta3

* Fix WinRM port bug (partially in Packer).

## v0.1.3-beta2

* Fix incorrect population of WinRM password.
Expand Down
2 changes: 1 addition & 1 deletion CommonVars.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 0.1.3-beta2
VERSION = 0.1.3-beta3
VERSION_INFO_FILE = ./version-info.go

BUILDER_PLUGIN_NAMES = customerimage customerimage-import
Expand Down
8 changes: 8 additions & 0 deletions builders/customerimage/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (builder *Builder) Prepare(settings ...interface{}) (warnings []string, err
SSHPort: getSSHPort,
SSHConfig: getSSHConfig,
WinRMConfig: getWinRMConfig,
WinRMPort: getWinRMPort,
},
&common.StepProvision{},
&steps.CloneServer{},
Expand Down Expand Up @@ -180,3 +181,10 @@ func getWinRMConfig(state multistep.StateBag) (winRMConfig *communicator.WinRMCo

return
}

func getWinRMPort(state multistep.StateBag) (port int, err error) {
settings := state.Get("settings").(*config.Settings)
port = settings.CommunicatorConfig.WinRMPort

return
}
Empty file modified init.sh
100755 → 100644
Empty file.

0 comments on commit 8868a79

Please sign in to comment.