pyocf: rename static Volume::open() to s_open()

.. to distinguish from exported object open() instance method

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2022-06-06 17:04:11 +02:00
parent 59d1905139
commit db2e4ecb68
2 changed files with 3 additions and 3 deletions

View File

@ -147,7 +147,7 @@ class Volume:
print("{}".format(Volume._uuid_))
return -1
return Volume.open(ref, volume)
return Volume.s_open(ref, volume)
@VolumeOps.CLOSE
def _close(ref):
@ -180,7 +180,7 @@ class Volume:
return Volume._ops_[cls]
@staticmethod
def open(ref, volume):
def s_open(ref, volume):
if volume.opened:
return -OcfErrorCode.OCF_ERR_NOT_OPEN_EXC

View File

@ -18,7 +18,7 @@ class CoreVolume(ExpObjVolume):
self.open()
def open(self):
return Volume.open(self.lib.ocf_core_get_front_volume(self.core.handle), self)
return Volume.s_open(self.lib.ocf_core_get_front_volume(self.core.handle), self)
def md5(self):
return self._exp_obj_md5(4096)