]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/SectionConfig.pm
SectionConfig::check_value: return bool/numbers as numeric value
[pve-common.git] / src / PVE / SectionConfig.pm
index e489b7c6f4e14eadb3227bb1114d4d2d2124535f..b1e96a4ed42bd9625e0a53b1ec932d061ea1f053 100644 (file)
@@ -259,6 +259,10 @@ sub check_value {
        }
     }
 
+    if ($ct eq 'boolean' || $ct eq 'integer' || $ct eq 'number') {
+       return $value + 0; # convert to number
+    }
+
     return $value;
 }