summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Kvashenkin <ak@gfoil.ru>2018-09-12 23:31:08 +0300
committerAnton Kvashenkin <ak@gfoil.ru>2018-09-12 23:31:08 +0300
commitdaffcbbfac0d110afd80dd7e162b92d458a67183 (patch)
treea41e1e1589f41da0548bd1439190d2feab6049e8
parentab638662a903c239c2e42842f3a0950877653fef (diff)
downloadohai-daffcbbfac0d110afd80dd7e162b92d458a67183.tar.gz
Fix rubocop offenses
Signed-off-by: Anton Kvashenkin <anton.jugatsu@gmail.com>
-rw-r--r--lib/ohai/plugins/root_group.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/root_group.rb b/lib/ohai/plugins/root_group.rb
index 3059fcae..ea1af938 100644
--- a/lib/ohai/plugins/root_group.rb
+++ b/lib/ohai/plugins/root_group.rb
@@ -29,8 +29,8 @@ Ohai.plugin(:RootGroup) do
# Use LocalAccount=True because otherwise WMI will attempt to include
# (unneeded) Active Directory groups by querying AD, which is a performance
# and reliability issue since AD might not be reachable.
- groups = wmi.query("select * from Win32_Group where sid like 'S-1-5-32-544' and LocalAccount=True")
- windows_root_group_name = groups[0]["name"]
+ groups = wmi.query("select * from Win32_Group where sid like 'S-1-5-32-544' and LocalAccount=True")
+ windows_root_group_name = groups[0]["name"]
root_group windows_root_group_name
end