]> git.proxmox.com Git - pve-cluster.git/commitdiff
do not pass undefined value to PVE::JSONSchema::parse_config
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 08:41:55 +0000 (10:41 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 08:41:55 +0000 (10:41 +0200)
data/PVE/Cluster.pm

index 043b4f12be1ec6e01aa6c9733d18d8fc82b2fa76..d6067b701243d3909d92f2edb83697db90a3d87c 100644 (file)
@@ -1331,7 +1331,7 @@ sub get_datacenter_schema { return $datacenter_schema };
 sub parse_datacenter_config {
     my ($filename, $raw) = @_;
 
-    return PVE::JSONSchema::parse_config($datacenter_schema, $filename, $raw);
+    return PVE::JSONSchema::parse_config($datacenter_schema, $filename, $raw // '');
 }
 
 sub write_datacenter_config {