File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments