]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/JSONSchema.pm
register new standard option pve-config-digest
[pve-common.git] / data / PVE / JSONSchema.pm
index 94d2db23fd98d0bc81a88192f981d5c9b55860c3..3e0fd52c13f54d0eab19e49dac5eece2129c7c5b 100644 (file)
@@ -76,6 +76,13 @@ PVE::JSONSchema::register_standard_option('pve-storage-id', {
     type => 'string', format => 'pve-storage-id',
 }); 
 
     type => 'string', format => 'pve-storage-id',
 }); 
 
+PVE::JSONSchema::register_standard_option('pve-config-digest', {
+    description => 'Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.',
+    type => 'string',
+    optional => 1,
+    maxLength => 40, # sha1 hex digest lenght is 40
+});
+
 my $format_list = {};
 
 sub register_format {
 my $format_list = {};
 
 sub register_format {