]> git.proxmox.com Git - pve-guest-common.git/commitdiff
helpers: s/conf_table_with_pending/config_with_pending_array/ and comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 10:53:43 +0000 (12:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 15:48:03 +0000 (17:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/GuestHelpers.pm

index a1ec76f50f7bba165e546266669776fc7a5ed8cb..207fd9b0a166169d4da4624e61541408492f1ec1 100644 (file)
@@ -142,7 +142,12 @@ sub format_pending {
     }
 }
 
-sub conf_table_with_pending {
+# returns the config as an array of hashes, each hash can have the following keys:
+# key (the config property name, non-optional)
+# value (the current value in effect - if any)
+# pending (a new, still pending, value - if any)
+# delete (when deletions are pending, this is set to either 2 (force) or 1 (graceful))
+sub config_with_pending_array {
     my ($conf, $pending_delete_hash) = @_;
 
     my $res = [];