rismoney / puppet-windowsnetwork

puppet provider for windows networking
9 stars 6 forks source link

call .lines.to_a instead of .to_a on gwcostmetric for ruby 1.9 compatibi... #5

Closed ptierno closed 10 years ago

ptierno commented 10 years ago

The setgateways method in the winnetwork provider calls .to_a on a string.

 oInParam.GatewayCostMetric = gateways_hash[:gwcostmetric].to_a

For ruby 1.9 and newer versions of puppet enterprise this should be changed to .lines.to_a.

 oInParam.GatewayCostMetric = gateways_hash[:gwcostmetric].lines.to_a
rismoney commented 10 years ago

i am trying to get this in now. i am having issues with it changing resources each time.

rismoney commented 10 years ago

this got merged.