From c1222fc00879e90e37efaa22268521ddf1d65b9c Mon Sep 17 00:00:00 2001 From: maaoyu Date: Fri, 15 Oct 2021 10:59:20 +0800 Subject: [PATCH] Signature of base method in class 'AccelBase' Signature of method 'AccelQAT.compress_img()' does not match signature of the base method in class 'AccelBase'[1]. [1] https://stackoverflow.com/questions/6034662/python-method-overriding-does-signature-matter Change-Id: I15df362fc796dc58fc66c9ef6dbdef981f7162ea --- cinder/image/accelerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/image/accelerator.py b/cinder/image/accelerator.py index 0a715c2be53..bf4137932b7 100644 --- a/cinder/image/accelerator.py +++ b/cinder/image/accelerator.py @@ -39,11 +39,11 @@ class AccelBase(object, metaclass=abc.ABCMeta): return @abc.abstractmethod - def compress_img(self, run_as_root): + def compress_img(self, src, dest, run_as_root): return @abc.abstractmethod - def decompress_img(self, run_as_root): + def decompress_img(self, src, dest, run_as_root): return