]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/SectionConfig.pm
register new standard option pve-config-digest
[pve-common.git] / data / PVE / SectionConfig.pm
index f0bf23f86c9f90f761dc73a21eafd9342a47d6dd..5a6dcb1b16cb29c092c07ee979957c09db559c1b 100644 (file)
@@ -84,12 +84,7 @@ sub updateSchema {
        }
     }
 
        }
     }
 
-    $props->{digest} = {
-       type => 'string',
-       description => 'Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.',
-       maxLength => 40,
-       optional => 1,
-    };
+    $props->{digest} = get_standard_option('pve-config-digest');
 
     $props->{delete} = {
        type => 'string', format => 'pve-configid-list',
 
     $props->{delete} = {
        type => 'string', format => 'pve-configid-list',