blob: d2ea5d3d0bd763db9f03e9baef6c063665f730c5 [file] [log] [blame]
Peter Pentchevea354462023-07-18 11:15:56 +03001From 1bf20850bdbd86997a59bc639ae51be71dd99da8 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
4Subject: [PATCH 03/10] StorPool: cosmetic: comment headings instead of empty
5 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
17index 328f76c00..8c2989fa8 100644
Peter Pentchevacaaa382023-02-28 11:26:13 +020018--- a/cinder/volume/drivers/storpool.py
19+++ b/cinder/volume/drivers/storpool.py
Peter Pentchevea354462023-07-18 11:15:56 +030020@@ -302,15 +302,16 @@ 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
32 'clone_across_pools': True,
33 'sparse_copy_volume': True,
34-
35+ # The actual pools data
36 'pools': pools
37 }
38
Peter Pentchevea354462023-07-18 11:15:56 +030039--
402.40.1
41