diff --git a/lib/facter/docker.rb b/lib/facter/docker.rb index 4a6e154bf..71fc67213 100644 --- a/lib/facter/docker.rb +++ b/lib/facter/docker.rb @@ -79,9 +79,9 @@ def interfaces Facter.add(:docker_worker_join_token) do setcode do - if Facter::Util::Resolution.which('docker') - val = Facter::Util::Resolution.execute( - "#{docker_command} swarm join-token worker -q", + if Facter::Core::Execution.which('docker') + val = Facter::Core::Execution.execute( + "#{docker_command} swarm join-token worker -q", options: { time_limit: 90 } ) end val @@ -90,9 +90,9 @@ def interfaces Facter.add(:docker_manager_join_token) do setcode do - if Facter::Util::Resolution.which('docker') - val = Facter::Util::Resolution.execute( - "#{docker_command} swarm join-token manager -q", + if Facter::Core::Execution.which('docker') + val = Facter::Core::Execution.execute( + "#{docker_command} swarm join-token manager -q", options: { time_limit: 90 } ) end val