diff options
author | sawanoboly <sawanoboriyu@higanworks.com> | 2020-02-28 21:02:13 +0900 |
---|---|---|
committer | sawanoboly <sawanoboriyu@higanworks.com> | 2020-02-29 02:34:59 +0900 |
commit | aae49363927449bbe5fbaaf2a7494a4345e37cb8 (patch) | |
tree | c9c1aba66b3f5767b97ec3126f00a1b2eecf364b | |
parent | 2f592241c22e9801840382864734bcdc29daf6df (diff) | |
download | ohai-aae49363927449bbe5fbaaf2a7494a4345e37cb8.tar.gz |
use &: to use single method
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
-rw-r--r-- | lib/ohai/plugins/openstack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/openstack.rb b/lib/ohai/plugins/openstack.rb index 5297c969..13305e4b 100644 --- a/lib/ohai/plugins/openstack.rb +++ b/lib/ohai/plugins/openstack.rb @@ -51,7 +51,7 @@ Ohai.plugin(:Openstack) do # dream host doesn't support windows so bail early if we're on windows return "openstack" if RUBY_PLATFORM =~ /mswin|mingw32|windows/ - if Etc::Passwd.map{|a| a.name}.include?("dhc-user") + if Etc::Passwd.map(&:name).include?("dhc-user") "dreamhost" else "openstack" |