forked from pool/python-rtslib-fb
		
	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:
		
				
					committed by
					
						 Git OBS Bridge
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							040b715555
						
					
				
				
					commit
					1edb5164f3
				
			| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user