Peter Pentchev | acaaa38 | 2023-02-28 11:26:13 +0200 | [diff] [blame^] | 1 | From 13e958bd85997cd84c37b76c0282bbfde5b9224a Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Penchev <openstack-dev@storpool.com> |
| 3 | Date: Mon, 13 Feb 2023 11:15:27 +0200 |
| 4 | Subject: [PATCH 03/10] StorPool: cosmetic: comment headings instead of empty |
| 5 | lines |
| 6 | |
| 7 | Instead of using empty lines to separate semantically different |
| 8 | sections of the driver capabilities / pools status dictionary, |
| 9 | put in comments describing the sections. |
| 10 | |
| 11 | Change-Id: Id919c9d4a854101c9635c53af4e11d5ea22ea697 |
| 12 | --- |
| 13 | cinder/volume/drivers/storpool.py | 5 +++-- |
| 14 | 1 file changed, 3 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | --- a/cinder/volume/drivers/storpool.py |
| 17 | +++ b/cinder/volume/drivers/storpool.py |
| 18 | @@ -302,15 +302,16 @@ |
| 19 | ) for t in templates] |
| 20 | |
| 21 | self._stats = { |
| 22 | + # Basic driver properties |
| 23 | 'volume_backend_name': self.configuration.safe_get( |
| 24 | 'volume_backend_name') or 'storpool', |
| 25 | 'vendor_name': 'StorPool', |
| 26 | 'driver_version': self.VERSION, |
| 27 | 'storage_protocol': constants.STORPOOL, |
| 28 | - |
| 29 | + # Driver capabilities |
| 30 | 'clone_across_pools': True, |
| 31 | 'sparse_copy_volume': True, |
| 32 | - |
| 33 | + # The actual pools data |
| 34 | 'pools': pools |
| 35 | } |
| 36 | |