From dc9c3ffa6c415784664e11df10377703cf18941a Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 24 Feb 2017 06:30:16 +0100 Subject: [PATCH] RESTEnvironment->init_request: reset result_attributes --- src/PVE/RESTEnvironment.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PVE/RESTEnvironment.pm b/src/PVE/RESTEnvironment.pm index 6c1ed59..fc820fc 100644 --- a/src/PVE/RESTEnvironment.pm +++ b/src/PVE/RESTEnvironment.pm @@ -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; -- 2.39.2