Do not use self in classmethod
cls should be used in classmethd, instead of self. Change-Id: I149b18935ce909ef978f2b7147b109e11c22f923
This commit is contained in:
@@ -338,7 +338,7 @@ class ContainerBroker(DatabaseBroker):
|
|||||||
self._db_files = None
|
self._db_files = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_broker(self, device_path, part, account, container, logger=None,
|
def create_broker(cls, device_path, part, account, container, logger=None,
|
||||||
epoch=None, put_timestamp=None,
|
epoch=None, put_timestamp=None,
|
||||||
storage_policy_index=None):
|
storage_policy_index=None):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user