Skip to content

Commit 6263d4c

Browse files
committed
Fix rubocop warnings
Signed-off-by: Luca Carrogu <[email protected]>
1 parent 04e600e commit 6263d4c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

recipes/base_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
include_recipe 'aws-parallelcluster::base_install'
1919

20-
if node['platform_family'] == 'amazon' and node['platform_version'] == '2'
20+
if node['platform_family'] == 'amazon' && node['platform_version'] == '2'
2121
# NOTE: temporary workaround for amazon linux 2 while alternative solutions are evaluated
2222
execute "hostnamectl set-hostname #{node['ec2']['local_hostname']}"
2323
short_hostname = node['ec2']['local_hostname'].split('.')[0]

recipes/base_install.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
case node['platform_family']
1919
when 'rhel', 'amazon'
2020
include_recipe 'yum'
21-
if node['platform_family'] == 'amazon' and node['platform_version'].to_i == 2
21+
if node['platform_family'] == 'amazon' && node['platform_version'].to_i == 2
2222
alinux_extras_topic 'epel'
23-
else
24-
include_recipe "yum-epel" if node['platform_version'].to_i < 7
23+
elsif node['platform_version'].to_i < 7
24+
include_recipe "yum-epel"
2525
end
2626

2727

recipes/dcv_config.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
# Configure the system to enable NICE DCV to have direct access to the Linux server's GPU and enable GPU sharing.
2222
def allow_gpu_acceleration
23-
2423
# On CentOS 7 fix circular dependency multi-user.target -> cloud-init-> isolate multi-user.target.
2524
# multi-user.target doesn't start until cloud-init run is finished. So isolate multi-user.target
2625
# is stuck into starting, which keep hanging chef until the 3600s timeout.

recipes/dcv_install.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def disable_lock_screen
9191
retry_delay 5
9292
end
9393
# Install the desktop environment and the desktop manager packages
94-
prereq_packages = %W[ubuntu-desktop lightdm mesa-utils]
94+
prereq_packages = %w[ubuntu-desktop lightdm mesa-utils]
9595
package prereq_packages do
9696
retries 10
9797
retry_delay 5
@@ -110,7 +110,7 @@ def disable_lock_screen
110110
end
111111

112112
when 'amazon'
113-
prereq_packages = %W[gdm gnome-session gnome-classic-session gnome-session-xsession
113+
prereq_packages = %w[gdm gnome-session gnome-classic-session gnome-session-xsession
114114
xorg-x11-server-Xorg xorg-x11-fonts-Type1 xorg-x11-drivers
115115
gnome-terminal gnu-free-fonts-common gnu-free-mono-fonts
116116
gnu-free-sans-fonts gnu-free-serif-fonts glx-utils]

0 commit comments

Comments
 (0)