From 166b37d55a4151cfb0819c5b6b94716348ae87cc Mon Sep 17 00:00:00 2001 From: etienned Date: Thu, 3 Oct 2024 09:47:25 -0400 Subject: [PATCH] Fix quota condition --- site/profile/manifests/volumes.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/profile/manifests/volumes.pp b/site/profile/manifests/volumes.pp index d3b122426..7c7f186ef 100644 --- a/site/profile/manifests/volumes.pp +++ b/site/profile/manifests/volumes.pp @@ -42,7 +42,7 @@ enable_resize => pick($values['enable_resize'], false), filesystem => pick($values['filesystem'], 'xfs'), require => File["/mnt/${volume_tag}"], - quota => pick_default($values['quota'], undef), + quota => pick_default($values['quota'], ''), } } } @@ -61,7 +61,7 @@ String $seltype, Boolean $enable_resize, Enum['xfs', 'ext3', 'ext4'] $filesystem, - Optional[String] $quota = undef, + String $quota = '', ) { $regex = Regexp(regsubst($glob, /[?*]/, { '?' => '.', '*' => '.*' })) @@ -170,7 +170,7 @@ } } - if $filesystem == 'xfs' and $quota != undef { + if $filesystem == 'xfs' and $quota != '' { # Save the xfs quota setting to avoid applying at every iteration file { "/etc/xfs_quota/${volume_tag}-${volume_name}": ensure => 'file',