Fix some typos

Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@redhat.com>

Change-Id: I927c6f92b3178def37719def899ce7028e4fc9cf
This commit is contained in:
Pablo Iranzo Gómez 2016-06-28 16:12:45 +02:00
parent c2a7f42645
commit d529f3b67b
No known key found for this signature in database
GPG Key ID: 034823665BD8E1E4
4 changed files with 8 additions and 8 deletions

View File

@ -227,7 +227,7 @@ CATEGORIES = {
}
# Modifying similiar code from nova/cmd/manage.py
# Modifying similar code from nova/cmd/manage.py
def methods_of(obj):
"""Get all callable methods of an object that don't start with underscore
@ -238,7 +238,7 @@ def methods_of(obj):
for fn in dir(obj):
if callable(getattr(obj, fn)) and not fn.startswith('_'):
result.append((fn, getattr(obj, fn),
getattr(obj, fn+'_description', None)))
getattr(obj, fn + '_description', None)))
return result

View File

@ -164,7 +164,7 @@ class DatabaseManager(object):
args.func(args)
def _exception_is_successfull_exit(thrown_exception):
def _exception_is_successful_exit(thrown_exception):
return (isinstance(thrown_exception, SystemExit) and
(thrown_exception.code is None or thrown_exception.code == 0))
@ -175,7 +175,7 @@ def main():
dm = DatabaseManager(CONF)
dm.execute()
except Exception as ex:
if not _exception_is_successfull_exit(ex):
if not _exception_is_successful_exit(ex):
LOG.exception(u._LE('Problem seen trying to run'
' barbican db manage'))
sys.stderr.write("ERROR: {0}\n".format(ex))

View File

@ -364,7 +364,7 @@ class NewSecretMetadataValidator(ValidatorBase):
"$schema": "http://json-schema.org/draft-03/schema",
"properties": {
"metadata": {"type": "object", "required": True},
}
}
}
def validate(self, json_data, parent_schema=None):

View File

@ -213,12 +213,12 @@ def create_certificate_authority(project=None, parsed_ca_in=None,
def create_preferred_cert_authority(cert_authority, session=None):
prefered_cert_authority = models.PreferredCertificateAuthority(
preferred_cert_authority = models.PreferredCertificateAuthority(
ca_id=cert_authority.id,
project_id=cert_authority.project_id)
preferred_ca_repo = repositories.get_preferred_ca_repository()
preferred_ca_repo.create_from(prefered_cert_authority, session=session)
return prefered_cert_authority
preferred_ca_repo.create_from(preferred_cert_authority, session=session)
return preferred_cert_authority
def create_project_cert_authority(certificate_authority=None, session=None):