Fix typos
Change-Id: Idd502c8df21da79ff3b9339870f38378f5337879
This commit is contained in:
		| @@ -17,7 +17,7 @@ import sys | ||||
|  | ||||
|  | ||||
| class _ProgressBarBase(object): | ||||
|     """A progress bar provider for a wrapped obect. | ||||
|     """A progress bar provider for a wrapped object. | ||||
|  | ||||
|     Base abstract class used by specific class wrapper to show | ||||
|     a progress bar when the wrapped object are consumed. | ||||
|   | ||||
| @@ -205,7 +205,7 @@ class BaseQuota(object): | ||||
| class ListQuota(command.Lister, BaseQuota): | ||||
|     _description = _( | ||||
|         "List quotas for all projects with non-default quota values or " | ||||
|         "list detailed quota informations for requested project") | ||||
|         "list detailed quota information for requested project") | ||||
|  | ||||
|     def _get_detailed_quotas(self, parsed_args): | ||||
|         columns = ( | ||||
| @@ -230,7 +230,7 @@ class ListQuota(command.Lister, BaseQuota): | ||||
|         result = [] | ||||
|         for resource, values in quotas.items(): | ||||
|             # NOTE(slaweq): there is no detailed quotas info for some resources | ||||
|             # and it should't be displayed here | ||||
|             # and it shouldn't be displayed here | ||||
|             if type(values) is dict: | ||||
|                 result.append({ | ||||
|                     'resource': resource, | ||||
|   | ||||
| @@ -2466,7 +2466,7 @@ class ListServer(command.Lister): | ||||
|                 # and 'image' missing in the server response during | ||||
|                 # infrastructure failure situations. | ||||
|                 # For those servers with partial constructs we just skip the | ||||
|                 # processing of the image and flavor informations. | ||||
|                 # processing of the image and flavor information. | ||||
|                 if not hasattr(s, 'image') or not hasattr(s, 'flavor'): | ||||
|                     continue | ||||
|             if 'id' in s.image: | ||||
| @@ -4292,7 +4292,7 @@ class ShelveServer(command.Command): | ||||
|  | ||||
|             server_obj.shelve() | ||||
|  | ||||
|         # if we don't hav to wait, either because it was requested explicitly | ||||
|         # if we don't have to wait, either because it was requested explicitly | ||||
|         # or is required implicitly, then our job is done | ||||
|         if not parsed_args.wait and not parsed_args.offload: | ||||
|             return | ||||
|   | ||||
| @@ -268,7 +268,7 @@ class SetEndpointGroup(command.Command, _FiltersReader): | ||||
|         parser.add_argument( | ||||
|             '--name', | ||||
|             metavar='<name>', | ||||
|             help=_('New enpoint group name'), | ||||
|             help=_('New endpoint group name'), | ||||
|         ) | ||||
|         parser.add_argument( | ||||
|             '--filters', | ||||
|   | ||||
| @@ -42,7 +42,7 @@ class TestCase(testtools.TestCase): | ||||
|     def openstack(cls, cmd, cloud=ADMIN_CLOUD, fail_ok=False): | ||||
|         """Executes openstackclient command for the given action | ||||
|  | ||||
|         NOTE(dtroyer): There is a subtle distinction between pasing | ||||
|         NOTE(dtroyer): There is a subtle distinction between passing | ||||
|         cloud=None and cloud='': for compatibility reasons passing | ||||
|         cloud=None continues to include the option '--os-auth-type none' | ||||
|         in the command while passing cloud='' omits the '--os-auth-type' | ||||
| @@ -61,7 +61,7 @@ class TestCase(testtools.TestCase): | ||||
|                 fail_ok=fail_ok | ||||
|             ) | ||||
|         else: | ||||
|             # Execure command with an explicit cloud specified | ||||
|             # Execute command with an explicit cloud specified | ||||
|             return execute( | ||||
|                 'openstack --os-cloud=' + cloud + ' ' + cmd, | ||||
|                 fail_ok=fail_ok | ||||
|   | ||||
| @@ -118,10 +118,10 @@ class VolumeTypeTests(common.BaseVolumeTests): | ||||
|         raw_output = self.openstack(cmd) | ||||
|         self.assertOutput('', raw_output) | ||||
|  | ||||
|     # NOTE: Add some basic funtional tests with the old format to | ||||
|     # NOTE: Add some basic functional tests with the old format to | ||||
|     #       make sure the command works properly, need to change | ||||
|     #       these to new test format when beef up all tests for | ||||
|     #       volume tye commands. | ||||
|     #       volume type commands. | ||||
|     def test_encryption_type(self): | ||||
|         encryption_type = uuid.uuid4().hex | ||||
|         # test create new encryption type | ||||
|   | ||||
| @@ -139,10 +139,10 @@ class VolumeTypeTests(common.BaseVolumeTests): | ||||
|         raw_output = self.openstack(cmd) | ||||
|         self.assertOutput('', raw_output) | ||||
|  | ||||
|     # NOTE: Add some basic funtional tests with the old format to | ||||
|     # NOTE: Add some basic functional tests with the old format to | ||||
|     #       make sure the command works properly, need to change | ||||
|     #       these to new test format when beef up all tests for | ||||
|     #       volume tye commands. | ||||
|     #       volume type commands. | ||||
|     def test_encryption_type(self): | ||||
|         name = uuid.uuid4().hex | ||||
|         encryption_type = uuid.uuid4().hex | ||||
|   | ||||
| @@ -139,10 +139,10 @@ class VolumeTypeTests(common.BaseVolumeTests): | ||||
|         raw_output = self.openstack(cmd) | ||||
|         self.assertOutput('', raw_output) | ||||
|  | ||||
|     # NOTE: Add some basic funtional tests with the old format to | ||||
|     # NOTE: Add some basic functional tests with the old format to | ||||
|     #       make sure the command works properly, need to change | ||||
|     #       these to new test format when beef up all tests for | ||||
|     #       volume tye commands. | ||||
|     #       volume type commands. | ||||
|     def test_encryption_type(self): | ||||
|         name = uuid.uuid4().hex | ||||
|         encryption_type = uuid.uuid4().hex | ||||
|   | ||||
| @@ -1285,7 +1285,7 @@ class FakeServerGroup(object): | ||||
|  | ||||
|  | ||||
| class FakeServerGroupV264(object): | ||||
|     """Fake one server group fo API >= 2.64""" | ||||
|     """Fake one server group for API >= 2.64""" | ||||
|  | ||||
|     @staticmethod | ||||
|     def create_one_server_group(attrs=None): | ||||
| @@ -1400,7 +1400,7 @@ class FakeQuota(object): | ||||
|  | ||||
|     @staticmethod | ||||
|     def create_one_default_comp_quota(attrs=None): | ||||
|         """Crate one quota""" | ||||
|         """Create one quota""" | ||||
|  | ||||
|         attrs = attrs or {} | ||||
|  | ||||
|   | ||||
| @@ -411,7 +411,7 @@ class UnsetVolumeType(command.Command): | ||||
|             "--encryption-type", | ||||
|             action="store_true", | ||||
|             help=_("Remove the encryption type for this volume type " | ||||
|                    "(admin oly)"), | ||||
|                    "(admin only)"), | ||||
|         ) | ||||
|         return parser | ||||
|  | ||||
|   | ||||
| @@ -98,7 +98,7 @@ class CreateVolumeSnapshot(command.ShowOne): | ||||
|             "--remote-source", | ||||
|             metavar="<key=value>", | ||||
|             action=parseractions.KeyValueAction, | ||||
|             help=_("The attribute(s) of the exsiting remote volume snapshot " | ||||
|             help=_("The attribute(s) of the existing remote volume snapshot " | ||||
|                    "(admin required) (repeat option to specify multiple " | ||||
|                    "attributes) e.g.: '--remote-source source-name=test_name " | ||||
|                    "--remote-source source-id=test_id'"), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Cyril Roelandt
					Cyril Roelandt