]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/Config.pm
crm: simply wait if there is no resource config
[pve-ha-manager.git] / src / PVE / HA / Config.pm
index bf32c765b25ed6cb50199f413d924b6652d1ca1c..58f5b58483ede0e5f8ea256b75ff95f44a929de8 100644 (file)
@@ -80,6 +80,11 @@ sub parse_resources_config {
     return PVE::HA::Resources->parse_config($filename, $raw);
 }
 
+sub resources_config_exists {
+
+    return (-f "/etc/pve/$ha_resources_config") ? 1 : 0;
+}
+
 sub read_resources_config {
 
     return cfs_read_file($ha_resources_config);