Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com>
---
 PVE/API2/NodeConfig.pm | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/PVE/API2/NodeConfig.pm b/PVE/API2/NodeConfig.pm
index 9c48bcdb..961cd345 100644
--- a/PVE/API2/NodeConfig.pm
+++ b/PVE/API2/NodeConfig.pm
@@ -11,25 +11,25 @@ use base qw(PVE::RESTHandler);
 
 my $node_config_schema = PVE::NodeConfig::get_nodeconfig_schema();
 my $node_config_keys = [ sort keys %$node_config_schema ];
-my $node_config_properties = {
-    delete => {
-       type => 'string', format => 'pve-configid-list',
-       description => "A list of settings you want to delete.",
-       optional => 1,
-    },
+my $node_config_return_properties = {
     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,
     },
+    %$node_config_schema,
+};
+my $node_config_properties = {
+    delete => {
+       type => 'string', format => 'pve-configid-list',
+       description => "A list of settings you want to delete.",
+       optional => 1,
+    },
     node => get_standard_option('pve-node'),
+    %$node_config_return_properties,
 };
 
-foreach my $opt (keys %{$node_config_schema}) {
-    $node_config_properties->{$opt} = $node_config_schema->{$opt};
-}
-
 __PACKAGE__->register_method({
     name => 'get_config',
     path => '',
@@ -54,7 +54,7 @@ __PACKAGE__->register_method({
     },
     returns => {
        type => "object",
-       properties => {},
+       properties => $node_config_return_properties,
     },
     code => sub {
        my ($param) = @_;
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to