From f68f3e06d0306fe9b2f064cecf7f6507fe765822 Mon Sep 17 00:00:00 2001 From: melissaml Date: Thu, 14 Feb 2019 14:24:06 +0800 Subject: [PATCH] [Trivial Fix] fix typos in docstrings Story: 2005027 Task: 29506 Change-Id: I250e0d381f2e1b78d4a2c7bf9a1b6a5422b66a12 --- inventory/inventory/inventory/common/utils.py | 2 +- mtce-common/src/common/nodeTimers.cpp | 2 +- mtce-common/src/common/pingUtil.cpp | 2 +- mtce-common/src/common/tokenUtil.cpp | 2 +- mtce/src/common/nodeClass.cpp | 2 +- mtce/src/hwmon/hwmonClass.h | 2 +- mtce/src/hwmon/hwmonHdlr.cpp | 2 +- mtce/src/maintenance/mtcInvApi.cpp | 2 +- mtce/src/maintenance/mtcNodeMnfa.cpp | 2 +- mtce/src/maintenance/mtcWorkQueue.cpp | 2 +- mtce/src/pmon/scripts/pmon-restart | 2 +- mtce/src/pmon/scripts/pmon-start | 2 +- mtce/src/pmon/scripts/pmon-stop | 2 +- mtce/src/scripts/hbs-query | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/inventory/inventory/inventory/common/utils.py b/inventory/inventory/inventory/common/utils.py index da0a89ad..e6890077 100644 --- a/inventory/inventory/inventory/common/utils.py +++ b/inventory/inventory/inventory/common/utils.py @@ -652,7 +652,7 @@ def is_low_core_system(ihost, dba): """Determine whether a low core cpu count system. Determine if the hosts core count is less than or equal to a xeon-d cpu - used with get_required_platform_reserved_memory to set the the required + used with get_required_platform_reserved_memory to set the required platform memory for xeon-d systems """ cpu_list = dba.cpu_get_by_host(ihost['uuid']) diff --git a/mtce-common/src/common/nodeTimers.cpp b/mtce-common/src/common/nodeTimers.cpp index fe2bb1b4..390e9183 100755 --- a/mtce-common/src/common/nodeTimers.cpp +++ b/mtce-common/src/common/nodeTimers.cpp @@ -341,7 +341,7 @@ void mtcTimer_reset ( struct mtc_timer * mtcTimer_ptr ) * timers at that time. They are defaulted to zero and should * remain that way. The mtcTimer_dump_data utility can be * called periodically by a process audit, will create a Swerr - * log with the recorded data and then clear the these vars only + * log with the recorded data and then clear these vars only * to allow the next occurance to be recorded and loged on the * next audit interval. * diff --git a/mtce-common/src/common/pingUtil.cpp b/mtce-common/src/common/pingUtil.cpp index d8afdc1f..a695bd3e 100644 --- a/mtce-common/src/common/pingUtil.cpp +++ b/mtce-common/src/common/pingUtil.cpp @@ -697,7 +697,7 @@ int pingUtil_acc_monitor ( ping_info_type & ping_info ) { if ( ++ping_info.recv_retries > (PING_MAX_RECV_RETRIES) ) { - /* only print this log once on the the resend attempt */ + /* only print this log once on the resend attempt */ if ( ping_info.send_retries >= PING_MAX_SEND_RETRIES ) { mlog ("%s ping recv from %s missed ; identity:%04x sequence:%04x (try %d of %d)\n", diff --git a/mtce-common/src/common/tokenUtil.cpp b/mtce-common/src/common/tokenUtil.cpp index 251ecf56..64715885 100644 --- a/mtce-common/src/common/tokenUtil.cpp +++ b/mtce-common/src/common/tokenUtil.cpp @@ -63,7 +63,7 @@ static void __retry_holdoff( int delay ) * The signal handler is serviced. * * Behavior : Issue non-blocking token request. If the request fails - * immediately the the far end did not connect and we backoff + * immediately the far end did not connect and we backoff * for RETRY_DELAY seconds. With a successful send we loop for * up to 2 seconds longer than the specified timeout, Any failure * results in a retry after RETRY_DELAY seconds. diff --git a/mtce/src/common/nodeClass.cpp b/mtce/src/common/nodeClass.cpp index 2069cdc2..2e70a068 100755 --- a/mtce/src/common/nodeClass.cpp +++ b/mtce/src/common/nodeClass.cpp @@ -7283,7 +7283,7 @@ int nodeLinkClass::ar_manage ( struct nodeLinkClass::node * node_ptr, * * Name : report_dor_recovery * - * Description: Create a specifically formatted log for the the specified + * Description: Create a specifically formatted log for the specified * hosts DOR recovery state and timing. * * Parameters : The node and a caller prefix string that states if the node diff --git a/mtce/src/hwmon/hwmonClass.h b/mtce/src/hwmon/hwmonClass.h index 7cb7b6cb..fe6111b4 100644 --- a/mtce/src/hwmon/hwmonClass.h +++ b/mtce/src/hwmon/hwmonClass.h @@ -340,7 +340,7 @@ class hwmonHostClass * * ipmi_load_sensor_samples - loads the samples into the sample list. * - * ipmi_update_sensors - updates the the hwmond with the latest sensor + * ipmi_update_sensors - updates the hwmond with the latest sensor * sample severity level for the specified host. * *************************************************************************/ diff --git a/mtce/src/hwmon/hwmonHdlr.cpp b/mtce/src/hwmon/hwmonHdlr.cpp index 95200451..5f1829d1 100644 --- a/mtce/src/hwmon/hwmonHdlr.cpp +++ b/mtce/src/hwmon/hwmonHdlr.cpp @@ -1596,7 +1596,7 @@ int hwmonHostClass::ipmi_sensor_monitor ( struct hwmonHostClass::hwmon_host * ho ptr->status.c_str(), get_severity(severity).c_str()); - /* debounce of the the transient 'na' case is debounced + /* debounce of the transient 'na' case is debounced * if ( host_ptr->sensor_query_count > 5 ) * log_sensor_data ( host_ptr, ptr->sensorname, ptr->status, get_ipmi_severity(ptr->sample_severity)); */ diff --git a/mtce/src/maintenance/mtcInvApi.cpp b/mtce/src/maintenance/mtcInvApi.cpp index b90c6521..527b3825 100755 --- a/mtce/src/maintenance/mtcInvApi.cpp +++ b/mtce/src/maintenance/mtcInvApi.cpp @@ -106,7 +106,7 @@ int mtcInvApi_read_inventory ( int batch ) dlog ("Path:%s\n", obj_ptr->sysinvEvent.token.url.c_str()); - /* The inventory server returns a path the the next element. + /* The inventory server returns a path the next element. * This code manages the setting the entity path that allows * a walk through the inventory on subsequent calls if the * batch number is less that the provisioned inventory number diff --git a/mtce/src/maintenance/mtcNodeMnfa.cpp b/mtce/src/maintenance/mtcNodeMnfa.cpp index 97e26bf0..fe0669f2 100644 --- a/mtce/src/maintenance/mtcNodeMnfa.cpp +++ b/mtce/src/maintenance/mtcNodeMnfa.cpp @@ -76,7 +76,7 @@ static bool add_host_to_awol_list ( string hostname, std::list & mnfa_aw * * Name : mnfa_add_host * - * Description: Add a failed host the the mnfa count and manage + * Description: Add a failed host the mnfa count and manage * the failed list * *****************************************************************************/ diff --git a/mtce/src/maintenance/mtcWorkQueue.cpp b/mtce/src/maintenance/mtcWorkQueue.cpp index fdbed85c..3e74e3ea 100644 --- a/mtce/src/maintenance/mtcWorkQueue.cpp +++ b/mtce/src/maintenance/mtcWorkQueue.cpp @@ -780,7 +780,7 @@ int nodeLinkClass::workQueue_done ( struct nodeLinkClass::node * node_ptr ) { int rc = PASS ; - /* have we timed out waiting the the work queue tom deplete */ + /* have we timed out waiting the work queue to deplete */ if ( node_ptr->mtcTimer.ring == true ) { qlog ( "%s Ring handler\n" , node_ptr->hostname.c_str()); diff --git a/mtce/src/pmon/scripts/pmon-restart b/mtce/src/pmon/scripts/pmon-restart index bef8b41f..9262972d 100755 --- a/mtce/src/pmon/scripts/pmon-restart +++ b/mtce/src/pmon/scripts/pmon-restart @@ -7,7 +7,7 @@ # # This utility is primarily used by no reboot patching for process restart # -# This script sends a jason string containing the the restart command +# This script sends a json string containing the restart command # and ${1} as the specified process name to pmond over the loopback # interface on port 2117 # diff --git a/mtce/src/pmon/scripts/pmon-start b/mtce/src/pmon/scripts/pmon-start index 590d0b5d..8e37acbd 100755 --- a/mtce/src/pmon/scripts/pmon-start +++ b/mtce/src/pmon/scripts/pmon-start @@ -7,7 +7,7 @@ # # This utility is primarily used by no reboot patching for process restart # -# This script sends a jason string containing the the restart command +# This script sends a json string containing the restart command # and ${1} as the specified process name to pmond over the loopback # interface on port 2117 # diff --git a/mtce/src/pmon/scripts/pmon-stop b/mtce/src/pmon/scripts/pmon-stop index a881a35d..e5f79362 100755 --- a/mtce/src/pmon/scripts/pmon-stop +++ b/mtce/src/pmon/scripts/pmon-stop @@ -7,7 +7,7 @@ # # This utility is primarily used by no reboot patching for process restart # -# This script sends a jason string containing the the restart command +# This script sends a json string containing the restart command # and ${1} as the specified process name to pmond over the loopback # interface on port 2117 # diff --git a/mtce/src/scripts/hbs-query b/mtce/src/scripts/hbs-query index 0fba4742..491e1856 100755 --- a/mtce/src/scripts/hbs-query +++ b/mtce/src/scripts/hbs-query @@ -7,7 +7,7 @@ # # This utility is primarily used by no reboot patching for process restart # -# This script sends a jason string containing the the restart command +# This script sends a json string containing the restart command # and ${1} as the specified process name to pmond over the loopback # interface on port 2117 #