From 331ab3a8c8a48d27fa5cbec72ec631d42e964486 Mon Sep 17 00:00:00 2001 From: Arthur Reyes Date: Fri, 23 Apr 2021 19:05:16 -0500 Subject: [PATCH 1/2] size_to_bytes failes with output of lvs contains < --- functions/size_to_bytes.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/size_to_bytes.pp b/functions/size_to_bytes.pp index b2190321..5fbec01d 100644 --- a/functions/size_to_bytes.pp +++ b/functions/size_to_bytes.pp @@ -10,7 +10,7 @@ function lvm::size_to_bytes ( 'E' => 1.1529215e18, } # Check if the size is valid and if so, extract the units - if $size =~ /^([0-9]+(\.[0-9]+)?)([KMGTPEkmgtpe])/ { + if $size =~ /^ Date: Fri, 23 Apr 2021 19:19:02 -0500 Subject: [PATCH 2/2] resigning to match CLA --- functions/size_to_bytes.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/size_to_bytes.pp b/functions/size_to_bytes.pp index 5fbec01d..4f688661 100644 --- a/functions/size_to_bytes.pp +++ b/functions/size_to_bytes.pp @@ -20,3 +20,4 @@ function lvm::size_to_bytes ( fail("${size} is not a valid LVM size") } } +