Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver.rb - winrm - specified port not being used #107

Open
tuccimon opened this issue Apr 13, 2017 · 0 comments
Open

driver.rb - winrm - specified port not being used #107

tuccimon opened this issue Apr 13, 2017 · 0 comments

Comments

@tuccimon
Copy link

On line 664 of https://github.com/CenturyLinkCloud/chef-provisioning-vsphere/blob/master/lib/chef/provisioning/vsphere_driver/driver.rb,
it has the following code:

port = options[:port] || winrm_transport == :ssl ? '5986' : '5985'

I specify a winrm_transport of :negotiate and a :port of 5985 (in my .kitchen.yml file) and I see that the data is being picked up properly. When it gets to this line, it renders the port variable as 5986. When I make the following change:

port = options[:port] || (winrm_transport == :ssl ? '5986' : '5985')

It works as the prioritization of the operations is expected.

PS - I am new to Github and I hope I'm submitting this issue properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant