[Trivialfix]Fix typos in distil

Fix all the typos found in distil.

Change-Id: Ibb889c510660bb2f9d7a847b75fb0deda3b5e3d3
This commit is contained in:
shangxiaobj 2017-08-13 20:18:46 -07:00
parent e61b323a32
commit b862ce2b1d
3 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ class BaseCollector(object):
root_vol = openstack.get_root_volume(entry['resource_id'])
except Exception as e:
LOG.warning(
'Error occured when getting root_volume for %s, reason: %s' %
'Error occurred when getting root_volume for %s, reason: %s' %
(entry['resource_id'], str(e))
)
@ -160,7 +160,7 @@ class BaseCollector(object):
)
except Exception as e:
LOG.warning(
'Error occured when getting image %s, reason: %s' %
'Error occurred when getting image %s, reason: %s' %
(image_id, str(e))
)

View File

@ -310,7 +310,7 @@ class OdooDriver(driver.BaseDriver):
result[v['date_invoice']].update({'details': details})
except Exception as e:
LOG.exception(
'Error occured when getting invoices from Odoo, '
'Error occurred when getting invoices from Odoo, '
'error: %s' % str(e)
)

View File

@ -111,7 +111,7 @@ def sort_entries(data):
class Tenant(object):
"""A wrapper object for the tenant recieved from keystone."""
"""A wrapper object for the tenant received from keystone."""
def __init__(self, tenant, conn):
self.tenant = tenant
self.conn = conn # the Interface object that produced us.