Skip to content

Commit 509a688

Browse files
authored
Merge pull request #36 from rsmekala/container_logic
Fixes "odd number list for Hash" error in Junos
2 parents e6dc223 + a77d7b0 commit 509a688

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/facter/productmodel.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
if is_docker
2020
require 'net/netconf/jnpr'
2121
# NETCONF_USER refers to the login username configured for puppet operations
22-
login = { target: 'localhost', username: ENV['NETCONF_USER'],
23-
port: ENV['NETCONF_PORT'] ? ENV['NETCONF_PORT'].to_i : 22 }
22+
login = { :target => 'localhost', :username => ENV['NETCONF_USER'],
23+
:port => ENV['NETCONF_PORT'] ? ENV['NETCONF_PORT'].to_i : 22 }
2424
@netconf = Netconf::SSH.new(login)
2525
# Else, open an IOProc session
2626
else

lib/puppet/provider/junos/junos_netdev_device.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def initialize( catalog_version )
2323

2424
if is_docker
2525
# NETCONF_USER refers to the login username configured for puppet operations
26-
login = { target: 'localhost', username: ENV['NETCONF_USER'],
27-
port: ENV['NETCONF_PORT'] ? ENV['NETCONF_PORT'].to_i : 22 }
26+
login = { :target => 'localhost', :username => ENV['NETCONF_USER'],
27+
:port => ENV['NETCONF_PORT'] ? ENV['NETCONF_PORT'].to_i : 22 }
2828
@netconf = Netconf::SSH.new(login)
2929
NetdevJunos::Log.debug "Opening a SSH connection from docker container: #{is_docker}"
3030
else

0 commit comments

Comments
 (0)