fixed typos found by RETF rules
rules are avaialble at https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos Change-Id: I70245e5ddf342762eb76d8e2e74b6363767726ef
This commit is contained in:
parent
b68d13bf83
commit
afcf3a5611
|
@ -363,9 +363,9 @@ class VerifiedHTTPSConnection(HTTPSConnection):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def host_matches_cert(host, x509):
|
def host_matches_cert(host, x509):
|
||||||
"""
|
"""
|
||||||
Verify that the the x509 certificate we have received
|
Verify that the x509 certificate we have received
|
||||||
from 'host' correctly identifies the server we are
|
from 'host' correctly identifies the server we are
|
||||||
connecting to, ie that the certificate's Common Name
|
connecting to, i.e. that the certificate's Common Name
|
||||||
or a Subject Alternative Name matches 'host'.
|
or a Subject Alternative Name matches 'host'.
|
||||||
"""
|
"""
|
||||||
def check_match(name):
|
def check_match(name):
|
||||||
|
|
|
@ -277,7 +277,7 @@ def get_file_size(file_obj):
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
if e.errno == errno.ESPIPE:
|
if e.errno == errno.ESPIPE:
|
||||||
# Illegal seek. This means the file object
|
# Illegal seek. This means the file object
|
||||||
# is a pipe (e.g the user is trying
|
# is a pipe (e.g. the user is trying
|
||||||
# to pipe image data to the client,
|
# to pipe image data to the client,
|
||||||
# echo testdata | bin/glance add blah...), or
|
# echo testdata | bin/glance add blah...), or
|
||||||
# that file object is empty, or that a file-like
|
# that file object is empty, or that a file-like
|
||||||
|
|
|
@ -102,7 +102,7 @@ def do_image_update(gc, args):
|
||||||
@utils.arg('--checksum', metavar='<CHECKSUM>',
|
@utils.arg('--checksum', metavar='<CHECKSUM>',
|
||||||
help='Displays images that match the checksum.')
|
help='Displays images that match the checksum.')
|
||||||
@utils.arg('--tag', metavar='<TAG>', action='append',
|
@utils.arg('--tag', metavar='<TAG>', action='append',
|
||||||
help="Filter images by an user-defined tag.")
|
help="Filter images by a user-defined tag.")
|
||||||
def do_image_list(gc, args):
|
def do_image_list(gc, args):
|
||||||
"""List images you can access."""
|
"""List images you can access."""
|
||||||
filter_keys = ['visibility', 'member_status', 'owner', 'checksum', 'tag']
|
filter_keys = ['visibility', 'member_status', 'owner', 'checksum', 'tag']
|
||||||
|
|
Loading…
Reference in New Issue