config set: check digest
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Jul 2018 08:16:14 +0000 (10:16 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Jul 2018 08:16:14 +0000 (10:16 +0200)
PVE/APIClient/Commands/config.pm

index 0b9b9aa..a5171fb 100644 (file)
@@ -54,6 +54,9 @@ __PACKAGE__->register_method ({
 
        my $code = sub {
            my $config = PVE::APIClient::Config->load();
+
+           PVE::APIClient::Tools::assert_if_modified($config->{digest}, $digest);
+
            my $defaults = PVE::APIClient::Config->get_defaults($config);
 
            my $plugin = PVE::APIClient::Config->lookup('defaults');