diff options
author | Tim Smith <tsmith@chef.io> | 2021-07-02 22:12:12 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2021-07-02 22:12:12 -0700 |
commit | 96d02863df2dd323cc026a192dc7b3fa823ba33b (patch) | |
tree | 4b28dc28d7fe3bd1a45ed2fb195adf404e9e95a2 | |
parent | 316ebfa7c3af498dae59e36d01a89d54ae7f1c14 (diff) | |
download | ohai-96d02863df2dd323cc026a192dc7b3fa823ba33b.tar.gz |
Switch to chefstyle from gem
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | lib/ohai/plugins/linux/network.rb | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ gem "chef-utils", git: "https://github.com/chef/chef", branch: "master", glob: " # NOTE: do not submit PRs to add pry as a dep, add to your Gemfile.local group :development do - gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master" + gem "chefstyle", "2.0.5" gem "ipaddr_extensions" gem "rake", ">= 10.1.0" gem "rspec-collection_matchers", "~> 1.0" diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb index 80168e39..01380336 100644 --- a/lib/ohai/plugins/linux/network.rb +++ b/lib/ohai/plugins/linux/network.rb @@ -80,7 +80,7 @@ Ohai.plugin(:Network) do line.strip! logger.trace("Plugin Network: Parsing #{line}") if /\\/.match?(line) - parts = line.split('\\') + parts = line.split("\\") route_dest = parts.shift.strip route_endings = parts elsif line =~ /^([^\s]+)\s(.*)$/ |