From 609bc5e2ae8d54dbd89bee4d4196acaa7325cb51 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Sun, 5 Nov 2017 14:25:47 +0200 Subject: [PATCH] Fix typos in comments TrivialFix Change-Id: I418a241ba1b1acd64b2bb17a50afeae4cf0f378a --- vmware_nsxlib/v3/client_cert.py | 2 +- vmware_nsxlib/v3/cluster.py | 2 +- vmware_nsxlib/v3/config.py | 2 +- vmware_nsxlib/v3/security.py | 2 +- vmware_nsxlib/v3/utils.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vmware_nsxlib/v3/client_cert.py b/vmware_nsxlib/v3/client_cert.py index b722acf6..da734f6c 100644 --- a/vmware_nsxlib/v3/client_cert.py +++ b/vmware_nsxlib/v3/client_cert.py @@ -236,7 +236,7 @@ class ClientCertificateManager(object): """Delete specified client certificate without storage verification""" # This file may contain private key # passing the pem through crypto will perform validation and - # stripp off the key + # strip off the key cert = self._get_cert_from_file(filename) cert_pem = crypto.dump_certificate(crypto.FILETYPE_PEM, cert) diff --git a/vmware_nsxlib/v3/cluster.py b/vmware_nsxlib/v3/cluster.py index d31e7d3d..063ef4cf 100644 --- a/vmware_nsxlib/v3/cluster.py +++ b/vmware_nsxlib/v3/cluster.py @@ -139,7 +139,7 @@ class TimeoutSession(requests.Session): # important). # It would be optimal to populate certificate once per connection, # per request. Unfortunately requests library verifies cert file - # existance regardless of whether certificate is going to be used + # existence regardless of whether certificate is going to be used # for this request. # Optimal solution for this would be to expose certificate as variable # and not as a file to the SSL library diff --git a/vmware_nsxlib/v3/config.py b/vmware_nsxlib/v3/config.py index e1935c81..7d520768 100644 --- a/vmware_nsxlib/v3/config.py +++ b/vmware_nsxlib/v3/config.py @@ -35,7 +35,7 @@ class NsxLibConfig(object): instead of basic authentication. :param insecure: If true, the NSX Manager server certificate is not verified. If false the CA bundle specified via "ca_file" - will be used or if unsest the default system root CAs + will be used or if unset the default system root CAs will be used. :param ca_file: Specify a CA bundle file to use in verifying the NSX Manager server certificate. This option is ignored if diff --git a/vmware_nsxlib/v3/security.py b/vmware_nsxlib/v3/security.py index 3c2814d1..f69c7157 100644 --- a/vmware_nsxlib/v3/security.py +++ b/vmware_nsxlib/v3/security.py @@ -395,7 +395,7 @@ class NsxLibFirewallSection(utils.NsxLibApiBase): if force: # shared sections (like default section) can serve multiple # openstack deployments. If some operate under protected - # identities, force-owerwrite is needed. + # identities, force-overwrite is needed. # REVISIT(annak): find better solution for shared sections headers = {'X-Allow-Overwrite': 'true'} diff --git a/vmware_nsxlib/v3/utils.py b/vmware_nsxlib/v3/utils.py index 039b6411..939d8ed3 100644 --- a/vmware_nsxlib/v3/utils.py +++ b/vmware_nsxlib/v3/utils.py @@ -60,7 +60,7 @@ def update_v3_tags(current_tags, tags_update): current_scopes = set([tag['scope'] for tag in current_tags]) updated_scopes = set([tag['scope'] for tag in tags_update]) - # All tags scopes which are either completley new or arleady defined on the + # All tags scopes which are either completely new or already defined on the # resource are left in place, unless the tag value is empty, in that case # it is ignored. tags = [{'scope': tag['scope'], 'tag': tag['tag']}