Skip to content

Commit 76bdb55

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Fix uninstall efa deps
`&&` operator has higher precedence than `||`. So the parenthesis is necessary Signed-off-by: Hanwen <[email protected]>
1 parent 8e6c33f commit 76bdb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/efa_install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
package 'uninstall efa deps before installing efa' do
5454
action :remove
5555
package_name %w[rdma-core]
56-
only_if { !efa_installed || efa_gdr_enabled? && node['platform_family'] == 'amazon' }
56+
only_if { (!efa_installed || efa_gdr_enabled?) && node['platform_family'] == 'amazon' }
5757
end
5858

5959
installer_options = "-y"

0 commit comments

Comments
 (0)