From 9cf6ad67c66915bb644c71e973d2ecad64db996d Mon Sep 17 00:00:00 2001 From: ChristineTChen Date: Mon, 16 Aug 2021 20:38:16 -0400 Subject: [PATCH] Fix typos in log lines --- cisco_aci/datadog_checks/cisco_aci/api.py | 2 +- .../tooling/commands/meta/snmp/validate_snmp_profiles.py | 2 +- .../tooling/commands/release/trello/fixed_cards_mover.py | 8 ++++---- harbor/datadog_checks/harbor/harbor.py | 2 +- .../ibm_mq/collectors/metadata_collector.py | 2 +- ibm_mq/datadog_checks/ibm_mq/config.py | 2 +- mapr/datadog_checks/mapr/mapr.py | 2 +- ssh_check/datadog_checks/ssh_check/ssh_check.py | 4 ++-- vsphere/datadog_checks/vsphere/legacy/vsphere_legacy.py | 4 ++-- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cisco_aci/datadog_checks/cisco_aci/api.py b/cisco_aci/datadog_checks/cisco_aci/api.py index 11205eb1aa3dc..4c9016e9b8a48 100644 --- a/cisco_aci/datadog_checks/cisco_aci/api.py +++ b/cisco_aci/datadog_checks/cisco_aci/api.py @@ -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() diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/snmp/validate_snmp_profiles.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/snmp/validate_snmp_profiles.py index 040ab0c2440ea..aba30dd10e134 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/snmp/validate_snmp_profiles.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/snmp/validate_snmp_profiles.py @@ -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) diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/release/trello/fixed_cards_mover.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/release/trello/fixed_cards_mover.py index a4057c5ad706e..1f104eb7da4c4 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/release/trello/fixed_cards_mover.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/commands/release/trello/fixed_cards_mover.py @@ -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]: diff --git a/harbor/datadog_checks/harbor/harbor.py b/harbor/datadog_checks/harbor/harbor.py index 6ff9ff2d0ba1e..e8f190145af36 100644 --- a/harbor/datadog_checks/harbor/harbor.py +++ b/harbor/datadog_checks/harbor/harbor.py @@ -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: diff --git a/ibm_mq/datadog_checks/ibm_mq/collectors/metadata_collector.py b/ibm_mq/datadog_checks/ibm_mq/collectors/metadata_collector.py index 518fe424193e7..86ef7cc1d47d7 100644 --- a/ibm_mq/datadog_checks/ibm_mq/collectors/metadata_collector.py +++ b/ibm_mq/datadog_checks/ibm_mq/collectors/metadata_collector.py @@ -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): diff --git a/ibm_mq/datadog_checks/ibm_mq/config.py b/ibm_mq/datadog_checks/ibm_mq/config.py index c8cbe36b75342..00dc3b689026d 100644 --- a/ibm_mq/datadog_checks/ibm_mq/config.py +++ b/ibm_mq/datadog_checks/ibm_mq/config.py @@ -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 diff --git a/mapr/datadog_checks/mapr/mapr.py b/mapr/datadog_checks/mapr/mapr.py index f27f152b5d55c..7a24ff051216f 100644 --- a/mapr/datadog_checks/mapr/mapr.py +++ b/mapr/datadog_checks/mapr/mapr.py @@ -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): diff --git a/ssh_check/datadog_checks/ssh_check/ssh_check.py b/ssh_check/datadog_checks/ssh_check/ssh_check.py index c39cbfda0c3a7..c78f68c331dc8 100644 --- a/ssh_check/datadog_checks/ssh_check/ssh_check.py +++ b/ssh_check/datadog_checks/ssh_check/ssh_check.py @@ -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: @@ -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: diff --git a/vsphere/datadog_checks/vsphere/legacy/vsphere_legacy.py b/vsphere/datadog_checks/vsphere/legacy/vsphere_legacy.py index 664aef922baf4..dec2a86b3463c 100644 --- a/vsphere/datadog_checks/vsphere/legacy/vsphere_legacy.py +++ b/vsphere/datadog_checks/vsphere/legacy/vsphere_legacy.py @@ -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: ``` @@ -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