From e853c01421d3bd59cd8c38336582ae54aec98adf Mon Sep 17 00:00:00 2001 From: "Jay S. Bryant" Date: Tue, 25 Jul 2017 15:29:44 -0500 Subject: [PATCH] [DOC BLD FIX] Fix docstring errors in nexenta driver The nexenta code had a number od dosctring errors that were causing Sphinx to generate WARNINGs during build. This patch corrects those errors. Change-Id: If762c8c6987cd063f675865238f0fe0933a4598c --- cinder/volume/drivers/nexenta/ns5/iscsi.py | 11 +++++++---- cinder/volume/drivers/nexenta/ns5/nfs.py | 19 +++++++++++-------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/cinder/volume/drivers/nexenta/ns5/iscsi.py b/cinder/volume/drivers/nexenta/ns5/iscsi.py index dc8ebfa9476..84ebf05a7a0 100644 --- a/cinder/volume/drivers/nexenta/ns5/iscsi.py +++ b/cinder/volume/drivers/nexenta/ns5/iscsi.py @@ -37,10 +37,13 @@ TARGET_GROUP_PREFIX = 'cinder-tg-' class NexentaISCSIDriver(driver.ISCSIDriver): """Executes volume driver commands on Nexenta Appliance. - Version history: - 1.0.0 - Initial driver version. - 1.1.0 - Added HTTPS support. - Added use of sessions for REST calls. + .. code-block:: default + + Version history: + 1.0.0 - Initial driver version. + 1.1.0 - Added HTTPS support. + Added use of sessions for REST calls. + """ VERSION = VERSION diff --git a/cinder/volume/drivers/nexenta/ns5/nfs.py b/cinder/volume/drivers/nexenta/ns5/nfs.py index d5d40f3efce..bf225f02a28 100644 --- a/cinder/volume/drivers/nexenta/ns5/nfs.py +++ b/cinder/volume/drivers/nexenta/ns5/nfs.py @@ -37,14 +37,17 @@ LOG = logging.getLogger(__name__) class NexentaNfsDriver(nfs.NfsDriver): """Executes volume driver commands on Nexenta Appliance. - Version history: - 1.0.0 - Initial driver version. - 1.1.0 - Added HTTPS support. - Added use of sessions for REST calls. - 1.2.0 - Support for extend volume. - Support for extending the volume in - create_volume_from_snapshot if the size of new volume is larger - than original volume size. + .. code-block:: default + + Version history: + 1.0.0 - Initial driver version. + 1.1.0 - Added HTTPS support. + Added use of sessions for REST calls. + 1.2.0 - Support for extend volume. + Support for extending the volume in + create_volume_from_snapshot if the size of new volume + is larger than original volume size. + """ driver_prefix = 'nexenta'