]> git.pld-linux.org Git - packages/ruby-ohai.git/blob - soft-net-dhcp.patch
requires ruby 2.0 according to .gemspec
[packages/ruby-ohai.git] / soft-net-dhcp.patch
1 require net/dhcp only when cloudstack hint present
2
3 --- ./lib/ohai/mixin/cloudstack_metadata.rb~    2014-12-01 22:01:15.000000000 +0200
4 +++ ./lib/ohai/mixin/cloudstack_metadata.rb     2014-12-04 17:21:55.363338588 +0200
5 @@ -17,7 +17,6 @@
6  
7  require 'ohai/mixin/ec2_metadata'
8  require 'ohai/hints'
9 -require 'net/dhcp'
10  require 'socket'
11  
12  
13 @@ -30,6 +29,8 @@
14          response = ''
15          if Ohai::Hints.hint?('cloudstack')
16            begin
17 +                       require 'net/dhcp'
18 +
19              request = DHCP::Discover.new
20  
21              listensock = UDPSocket.new
This page took 0.054708 seconds and 3 git commands to generate.