X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fb1f1d56e8d8a6a86b79c71546e6c114fec2640c..95e1e4603eb8c32acf8ee58c845ec4ce5bfdd56c:/cookbooks/nfs/recipes/server.rb diff --git a/cookbooks/nfs/recipes/server.rb b/cookbooks/nfs/recipes/server.rb index f75e44e88..33e5a315e 100644 --- a/cookbooks/nfs/recipes/server.rb +++ b/cookbooks/nfs/recipes/server.rb @@ -41,11 +41,11 @@ search(:node, "*:*") do |client| client.ipaddresses do |address| exports[mount[:path]] ||= {} - if mount[:readonly] - exports[mount[:path]][address] = "ro" - else - exports[mount[:path]][address] = "rw" - end + exports[mount[:path]][address] = if mount[:readonly] + "ro" + else + "rw" + end end end end