blob: 0595830a513927ecb3bc516b241fde75b8dc516a [file] [log] [blame]
Peter Pentchev5a9f8a62023-12-06 10:40:18 +02001From 0912d760d1329eb3e1ccfc79b99a916e810d0f20 Mon Sep 17 00:00:00 2001
Peter Pentchevacaaa382023-02-28 11:26:13 +02002From: Peter Penchev <openstack-dev@storpool.com>
3Date: Mon, 13 Feb 2023 11:15:27 +0200
Peter Pentchev5a9f8a62023-12-06 10:40:18 +02004Subject: [PATCH 01/10] StorPool: cosmetic: comment headings instead of empty
Peter Pentchevacaaa382023-02-28 11:26:13 +02005 lines
6
7Instead of using empty lines to separate semantically different
8sections of the driver capabilities / pools status dictionary,
9put in comments describing the sections.
10
11Change-Id: Id919c9d4a854101c9635c53af4e11d5ea22ea697
12---
13 cinder/volume/drivers/storpool.py | 5 +++--
14 1 file changed, 3 insertions(+), 2 deletions(-)
15
Peter Pentchevea354462023-07-18 11:15:56 +030016diff --git a/cinder/volume/drivers/storpool.py b/cinder/volume/drivers/storpool.py
Peter Pentchev5a9f8a62023-12-06 10:40:18 +020017index 47685cb3f..d42d1c68c 100644
Peter Pentchevacaaa382023-02-28 11:26:13 +020018--- a/cinder/volume/drivers/storpool.py
19+++ b/cinder/volume/drivers/storpool.py
Peter Pentchev5a9f8a62023-12-06 10:40:18 +020020@@ -302,14 +302,15 @@ class StorPoolDriver(driver.VolumeDriver):
Peter Pentchevacaaa382023-02-28 11:26:13 +020021 ) for t in templates]
22
23 self._stats = {
24+ # Basic driver properties
25 'volume_backend_name': self.configuration.safe_get(
26 'volume_backend_name') or 'storpool',
27 'vendor_name': 'StorPool',
28 'driver_version': self.VERSION,
29 'storage_protocol': constants.STORPOOL,
30-
31+ # Driver capabilities
Peter Pentchevacaaa382023-02-28 11:26:13 +020032 'sparse_copy_volume': True,
33-
34+ # The actual pools data
35 'pools': pools
36 }
37
Peter Pentchevea354462023-07-18 11:15:56 +030038--
Peter Pentchev5a9f8a62023-12-06 10:40:18 +0200392.42.0
Peter Pentchevea354462023-07-18 11:15:56 +030040