@@ -69,7 +69,7 @@ def interfaces
6969 setcode do
7070 if Facter ::Core ::Execution . which ( 'docker' )
7171 value = Facter ::Core ::Execution . execute (
72- "#{ docker_command } version --format '{{json .}}'" , time_limit : 90
72+ "#{ docker_command } version --format '{{json .}}'" , timeout : 90
7373 )
7474 val = JSON . parse ( value )
7575 end
@@ -81,7 +81,7 @@ def interfaces
8181 setcode do
8282 if Facter ::Core ::Execution . which ( 'docker' )
8383 val = Facter ::Core ::Execution . execute (
84- "#{ docker_command } swarm join-token worker -q" , time_limit : 90
84+ "#{ docker_command } swarm join-token worker -q" , timeout : 90
8585 )
8686 end
8787 val
@@ -92,7 +92,7 @@ def interfaces
9292 setcode do
9393 if Facter ::Core ::Execution . which ( 'docker' )
9494 val = Facter ::Core ::Execution . execute (
95- "#{ docker_command } swarm join-token manager -q" , time_limit : 90
95+ "#{ docker_command } swarm join-token manager -q" , timeout : 90
9696 )
9797 end
9898 val
@@ -105,20 +105,20 @@ def interfaces
105105 if docker_version &.match? ( %r{1[0-9][0-2]?[.]\w +} )
106106 if Facter ::Core ::Execution . which ( 'docker' )
107107 docker_json_str = Facter ::Core ::Execution . execute (
108- "#{ docker_command } info --format '{{json .}}'" , time_limit : 90
108+ "#{ docker_command } info --format '{{json .}}'" , timeout : 90
109109 )
110110 begin
111111 docker = JSON . parse ( docker_json_str )
112112 docker [ 'network' ] = { }
113113
114114 docker [ 'network' ] [ 'managed_interfaces' ] = { }
115- network_list = Facter ::Core ::Execution . execute ( "#{ docker_command } network ls | tail -n +2" , time_limit : 90 )
115+ network_list = Facter ::Core ::Execution . execute ( "#{ docker_command } network ls | tail -n +2" , timeout : 90 )
116116 docker_network_names = [ ]
117117 network_list . each_line { |line | docker_network_names . push line . split [ 1 ] }
118118 docker_network_ids = [ ]
119119 network_list . each_line { |line | docker_network_ids . push line . split [ 0 ] }
120120 docker_network_names . each do |network |
121- inspect = JSON . parse ( Facter ::Core ::Execution . execute ( "#{ docker_command } network inspect #{ network } " , time_limit : 90 ) )
121+ inspect = JSON . parse ( Facter ::Core ::Execution . execute ( "#{ docker_command } network inspect #{ network } " , timeout : 90 ) )
122122 docker [ 'network' ] [ network ] = inspect [ 0 ]
123123 network_id = docker [ 'network' ] [ network ] [ 'Id' ] [ 0 ..11 ]
124124 interfaces . each do |iface |
0 commit comments