summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-07-02 22:12:12 -0700
committerTim Smith <tsmith@chef.io>2021-07-02 22:12:12 -0700
commit96d02863df2dd323cc026a192dc7b3fa823ba33b (patch)
tree4b28dc28d7fe3bd1a45ed2fb195adf404e9e95a2
parent316ebfa7c3af498dae59e36d01a89d54ae7f1c14 (diff)
downloadohai-96d02863df2dd323cc026a192dc7b3fa823ba33b.tar.gz
Switch to chefstyle from gem
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--Gemfile2
-rw-r--r--lib/ohai/plugins/linux/network.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index 0360f092..28b28584 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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(.*)$/