Accepting request 829856 from home:mattoliverau:branches:devel:languages:python
- Updated the rbd-support.patch (bsc#1175808): * Fixed the signiture of the RBDStorageObject to match changes made to parent StorageObject class. OBS-URL: https://build.opensuse.org/request/show/829856 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rtslib-fb?expand=0&rev=53
This commit is contained in:
parent
040b715555
commit
1edb5164f3
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 27 02:10:59 UTC 2020 - Matthew Oliver <moliver@suse.com>
|
||||
|
||||
- Updated the rbd-support.patch (bsc#1175808):
|
||||
* Fixed the signiture of the RBDStorageObject to match changes made
|
||||
to parent StorageObject class.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 30 17:49:04 UTC 2020 - lduncan@suse.com
|
||||
|
||||
|
@ -36,7 +36,7 @@ Reviewed-by: David Disseldorp <ddiss@suse.de>
|
||||
+ # RBDStorageObject private stuff
|
||||
+
|
||||
+ def __init__(self, name, dev=None, wwn=None, readonly=False,
|
||||
+ write_back=False):
|
||||
+ write_back=False, index=None):
|
||||
+ '''
|
||||
+ A RBDIOStorageObject can be instantiated in two ways:
|
||||
+ - B{Creation mode}: If I{dev} is specified, the underlying configFS
|
||||
@ -62,14 +62,14 @@ Reviewed-by: David Disseldorp <ddiss@suse.de>
|
||||
+ '''
|
||||
+
|
||||
+ if dev is not None:
|
||||
+ super(RBDStorageObject, self).__init__(name, 'create')
|
||||
+ super(RBDStorageObject, self).__init__(name, 'create', index)
|
||||
+ try:
|
||||
+ self._configure(dev, wwn, readonly)
|
||||
+ except:
|
||||
+ self.delete()
|
||||
+ raise
|
||||
+ else:
|
||||
+ super(RBDStorageObject, self).__init__(name, 'lookup')
|
||||
+ super(RBDStorageObject, self).__init__(name, 'lookup', index)
|
||||
+
|
||||
+ def _configure(self, dev, wwn, readonly):
|
||||
+ self._check_self()
|
||||
|
Loading…
Reference in New Issue
Block a user