RESTEnvironment->init_request: reset result_attributes
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 24 Feb 2017 05:30:16 +0000 (06:30 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 24 Feb 2017 05:30:16 +0000 (06:30 +0100)
src/PVE/RESTEnvironment.pm

index 6c1ed59..fc820fc 100644 (file)
@@ -687,7 +687,9 @@ sub check_api2_permissions {
 sub init_request {
     my ($self, %params) = @_;
 
-    # implement in subclass
+    $self->{result_attributes} = {}
+
+    # if you nedd more, implement in subclass
 }
 
 1;