diff options
author | Tom Duffield <tom@chef.io> | 2017-01-31 17:43:39 -0600 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2017-01-31 17:49:01 -0600 |
commit | 3ef8b02143c251180f7bf6212550c1ad3c44ef55 (patch) | |
tree | cb071bc94bcaa83cf23c5a8a5fec1931f7c89eb6 /lib/chef/provider/route.rb | |
parent | b3ae36cb4759a1ee16368b78558b69c553e650d8 (diff) | |
download | chef-3ef8b02143c251180f7bf6212550c1ad3c44ef55.tar.gz |
Use CIDR block rather than netmask in route-eth0 file
Convert the netmask into the CIDR block for the route-eth0 file.
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'lib/chef/provider/route.rb')
-rw-r--r-- | lib/chef/provider/route.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/route.rb b/lib/chef/provider/route.rb index f2b7b33419..5e20fdf11e 100644 --- a/lib/chef/provider/route.rb +++ b/lib/chef/provider/route.rb @@ -219,7 +219,7 @@ class Chef case action when :add content << (options[:target]).to_s - content << "/#{options[:netmask]}" if options[:netmask] + content << "/#{MASK[options[:netmask].to_s]}" if options[:netmask] content << " via #{options[:gateway]}" if options[:gateway] content << "\n" end |