From 0d9b8a14ef52e55c38b71f41435d5c04651ecbd0 Mon Sep 17 00:00:00 2001
From: Petr Kovar <pkovar@redhat.com>
Date: Wed, 18 Jan 2017 19:26:29 +0100
Subject: [PATCH] Fix spelling of consistency groups

Trivial fixes making the consistency group spelling more consistent.

Change-Id: I3716606a5415f2cbf966749de17b512c347b1790
---
 cinderclient/shell_utils.py          |  2 +-
 cinderclient/v2/cgsnapshots.py       |  2 +-
 cinderclient/v2/consistencygroups.py | 20 ++++++++++----------
 cinderclient/v2/shell.py             |  4 ++--
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/cinderclient/shell_utils.py b/cinderclient/shell_utils.py
index fa73777ca..6d12a78ce 100644
--- a/cinderclient/shell_utils.py
+++ b/cinderclient/shell_utils.py
@@ -79,7 +79,7 @@ def find_backup(cs, backup):
 
 
 def find_consistencygroup(cs, consistencygroup):
-    """Gets a consistencygroup by name or ID."""
+    """Gets a consistency group by name or ID."""
     return utils.find_resource(cs.consistencygroups, consistencygroup)
 
 
diff --git a/cinderclient/v2/cgsnapshots.py b/cinderclient/v2/cgsnapshots.py
index 36e9239d6..04444e2b3 100644
--- a/cinderclient/v2/cgsnapshots.py
+++ b/cinderclient/v2/cgsnapshots.py
@@ -43,7 +43,7 @@ class CgsnapshotManager(base.ManagerWithFind):
                project_id=None):
         """Creates a cgsnapshot.
 
-        :param consistencygroup: Name or uuid of a consistencygroup
+        :param consistencygroup: Name or uuid of a consistency group
         :param name: Name of the cgsnapshot
         :param description: Description of the cgsnapshot
         :param user_id: User id derived from context
diff --git a/cinderclient/v2/consistencygroups.py b/cinderclient/v2/consistencygroups.py
index b2aa7defa..d5e5bbf77 100644
--- a/cinderclient/v2/consistencygroups.py
+++ b/cinderclient/v2/consistencygroups.py
@@ -26,11 +26,11 @@ class Consistencygroup(base.Resource):
         return "<Consistencygroup: %s>" % self.id
 
     def delete(self, force='False'):
-        """Delete this consistencygroup."""
+        """Delete this consistency group."""
         return self.manager.delete(self, force)
 
     def update(self, **kwargs):
-        """Update the name or description for this consistencygroup."""
+        """Update the name or description for this consistency group."""
         return self.manager.update(self, **kwargs)
 
 
@@ -41,7 +41,7 @@ class ConsistencygroupManager(base.ManagerWithFind):
     def create(self, volume_types, name=None,
                description=None, user_id=None,
                project_id=None, availability_zone=None):
-        """Creates a consistencygroup.
+        """Creates a consistency group.
 
         :param name: Name of the ConsistencyGroup
         :param description: Description of the ConsistencyGroup
@@ -66,7 +66,7 @@ class ConsistencygroupManager(base.ManagerWithFind):
     def create_from_src(self, cgsnapshot_id, source_cgid, name=None,
                         description=None, user_id=None,
                         project_id=None):
-        """Creates a consistencygroup from a cgsnapshot or a source CG.
+        """Creates a consistency group from a cgsnapshot or a source CG.
 
         :param cgsnapshot_id: UUID of a CGSnapshot
         :param source_cgid: UUID of a source CG
@@ -92,16 +92,16 @@ class ConsistencygroupManager(base.ManagerWithFind):
         return common_base.DictWithMeta(body['consistencygroup'], resp)
 
     def get(self, group_id):
-        """Get a consistencygroup.
+        """Get a consistency group.
 
-        :param group_id: The ID of the consistencygroup to get.
+        :param group_id: The ID of the consistency group to get.
         :rtype: :class:`Consistencygroup`
         """
         return self._get("/consistencygroups/%s" % group_id,
                          "consistencygroup")
 
     def list(self, detailed=True, search_opts=None):
-        """Lists all consistencygroups.
+        """Lists all consistency groups.
 
         :rtype: list of :class:`Consistencygroup`
         """
@@ -116,7 +116,7 @@ class ConsistencygroupManager(base.ManagerWithFind):
                           "consistencygroups")
 
     def delete(self, consistencygroup, force=False):
-        """Delete a consistencygroup.
+        """Delete a consistency group.
 
         :param Consistencygroup: The :class:`Consistencygroup` to delete.
         """
@@ -127,7 +127,7 @@ class ConsistencygroupManager(base.ManagerWithFind):
         return common_base.TupleWithMeta((resp, body), resp)
 
     def update(self, consistencygroup, **kwargs):
-        """Update the name or description for a consistencygroup.
+        """Update the name or description for a consistency group.
 
         :param Consistencygroup: The :class:`Consistencygroup` to update.
         """
@@ -140,7 +140,7 @@ class ConsistencygroupManager(base.ManagerWithFind):
                             base.getid(consistencygroup), body)
 
     def _action(self, action, consistencygroup, info=None, **kwargs):
-        """Perform a consistencygroup "action."
+        """Perform a consistency group "action."
         """
         body = {action: info}
         self.run_hooks('modify_body_for_action', body, **kwargs)
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py
index 31aed3dc0..7b2772cdc 100644
--- a/cinderclient/v2/shell.py
+++ b/cinderclient/v2/shell.py
@@ -2191,7 +2191,7 @@ def do_replication_reenable(cs, args):
            help='Shows details for all tenants. Admin only.')
 @utils.service_type('volumev2')
 def do_consisgroup_list(cs, args):
-    """Lists all consistencygroups."""
+    """Lists all consistency groups."""
     consistencygroups = cs.consistencygroups.list()
 
     columns = ['ID', 'Status', 'Name']
@@ -2346,7 +2346,7 @@ def do_consisgroup_delete(cs, args):
                 'separated by commas. Default=None.')
 @utils.service_type('volumev2')
 def do_consisgroup_update(cs, args):
-    """Updates a consistencygroup."""
+    """Updates a consistency group."""
     kwargs = {}
 
     if args.name is not None: