Skip to content

Commit

Permalink
Fix typos in log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTChen committed Aug 17, 2021
1 parent 3e21de3 commit 9cf6ad6
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cisco_aci/datadog_checks/cisco_aci/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def make_request(self, path):
try:
response.raise_for_status()
except Exception as e:
self.log.warning("Error making request: exception='%s' reponse.content='%s'", e, response.content)
self.log.warning("Error making request: exception='%s' response.content='%s'", e, response.content)
raise APIConnectionException("Error making request: {}".format(e))
try:
return response.json()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def show_report(report):
if report['failed']:
echo_failure("FAILED")
else:
echo_success("Successfuly validated")
echo_success("Successfully validated")

for display_func, message in report['messages']:
display_func(message)
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def __get_team_info(self, id_labels: List[str]) -> Tuple[str, str]:

def __get_github_pull_requests_urls(self, card_id: str) -> List[str]:
urls = set([])
attachements = self.__client.get_attachments(card_id)
for attachement in attachements:
if 'idMember' in attachement and attachement['idMember'] == self.GITHUB_TRELLO_ACTION_ID:
urls.add(attachement['url'])
attachments = self.__client.get_attachments(card_id)
for attachment in attachments:
if 'idMember' in attachment and attachment['idMember'] == self.GITHUB_TRELLO_ACTION_ID:
urls.add(attachment['url'])
return list(urls)

def __get_github_pull_requests_urls_from_comments(self, card_id: str) -> List[str]:
Expand Down
2 changes: 1 addition & 1 deletion harbor/datadog_checks/harbor/harbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def check(self, instance):
self._submit_disk_metrics(api, tags)
self._submit_read_only_status(api, tags)
except Exception:
self.log.exception("An error occured when collecting Harbor metrics")
self.log.exception("An error occurred when collecting Harbor metrics")
self.service_check(CAN_CONNECT, AgentCheck.CRITICAL)
raise
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def collect_metadata(self, queue_manager):
self.log.debug('IBM MQ version: %s', raw_version)
return raw_version
except Exception as e:
self.log.debug("Version could not be retreived: %s", e)
self.log.debug("Version could not be retrieved: %s", e)
return

def _get_version(self, queue_manager):
Expand Down
2 changes: 1 addition & 1 deletion ibm_mq/datadog_checks/ibm_mq/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(self, instance):
instance.get('ssl_cipher_spec') or instance.get('ssl_key_repository_location') or self.ssl_certificate_label
):
self.log.info(
"ssl_auth has not been explictly enabled but other SSL options have been provided. "
"ssl_auth has not been explicitly enabled but other SSL options have been provided. "
"SSL will be used for connecting"
)
self.ssl = True
Expand Down
2 changes: 1 addition & 1 deletion mapr/datadog_checks/mapr/mapr.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _process_metric(self, msg):
return 1
return 0
except Exception as e:
self.log.warning("Received unexpected message %s, wont be processed", msg.value())
self.log.warning("Received unexpected message %s, won't be processed", msg.value())
self.log.exception(e)

def _process_error(self, error_msg):
Expand Down
4 changes: 2 additions & 2 deletions ssh_check/datadog_checks/ssh_check/ssh_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def check(self, _):
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.load_system_host_keys()

exception_message = "No errors occured"
exception_message = "No errors occurred"
try:
# Try to connect to check status of SSH
try:
Expand Down Expand Up @@ -105,7 +105,7 @@ def check(self, _):
status = AgentCheck.CRITICAL

if exception_message is None:
exception_message = "No errors occured"
exception_message = "No errors occurred"

self.service_check(self.SFTP_SERVICE_CHECK_NAME, status, tags=self.base_tags, message=exception_message)
finally:
Expand Down
4 changes: 2 additions & 2 deletions vsphere/datadog_checks/vsphere/legacy/vsphere_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def _get_all_objs(self, server_instance, regexes, include_only_marked, tags, use
"""
Explore vCenter infrastructure to discover hosts, virtual machines, etc.
and compute their associated tags.
Start at the vCenter `rootFolder`, so as to collect every objet.
Start at the vCenter `rootFolder`, so as to collect every object.
Example topology:
```
Expand Down Expand Up @@ -1010,7 +1010,7 @@ def check(self, instance):
if self.exception_printed > 0:
self.log.error("One thread in the pool crashed, check the logs")
except Exception as e:
self.log.error("An exception occured while collecting vSphere metrics: %s", e)
self.log.error("An exception occurred while collecting vSphere metrics: %s", e)
if self.pool:
self.terminate_pool()
raise

0 comments on commit 9cf6ad6

Please sign in to comment.