[pve-devel] [PATCH ha-manager 2/2] tools: adapt line lengths of verbose descriptions

Aaron Lauterer a.lauterer at proxmox.com
Mon Nov 11 11:08:12 CET 2024


Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 src/PVE/HA/Tools.pm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/PVE/HA/Tools.pm b/src/PVE/HA/Tools.pm
index 09b73f1..0f9e9a5 100644
--- a/src/PVE/HA/Tools.pm
+++ b/src/PVE/HA/Tools.pm
@@ -40,7 +40,8 @@ sub pve_verify_ha_resource_id {
 }
 
 PVE::JSONSchema::register_standard_option('pve-ha-resource-id', {
-    description => "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100).",
+    description => "HA resource ID. This consists of a resource type followed by a resource"
+	." specific name, separated with colon (example: vm:100 / ct:100).",
     typetext => "<type>:<name>",
     type => 'string', format => 'pve-ha-resource-id',
 });
@@ -57,7 +58,9 @@ sub pve_verify_ha_resource_or_vm_id {
 }
 
 PVE::JSONSchema::register_standard_option('pve-ha-resource-or-vm-id', {
-    description => "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
+    description => "HA resource ID. This consists of a resource type followed by a resource"
+	." specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and"
+	." containers, you can simply use the VM or CT id as a shortcut (example: 100).",
     typetext => "<type>:<name>",
     type => 'string', format => 'pve-ha-resource-or-vm-id',
 });
@@ -75,7 +78,11 @@ sub pve_verify_ha_group_node {
 
 PVE::JSONSchema::register_standard_option('pve-ha-group-node-list', {
     description => "List of cluster node names with optional priority.",
-    verbose_description => "List of cluster node members, where a priority can be given to each node. A resource bound to a group will run on the available nodes with the highest priority. If there are more nodes in the highest priority class, the services will get distributed to those nodes. The priorities have a relative meaning only. The higher the number, the higher the priority.",
+    verbose_description => "List of cluster node members, where a priority can be given to each"
+	." node. A resource bound to a group will run on the available nodes with the highest"
+	." priority. If there are more nodes in the highest priority class, the services will get"
+	." distributed to those nodes. The priorities have a relative meaning only. The higher the"
+	." number, the higher the priority.",
     type => 'string', format => 'pve-ha-group-node-list',
     typetext => '<node>[:<pri>]{,<node>[:<pri>]}*',
 });
-- 
2.39.5





More information about the pve-devel mailing list