Skip to content

Commit fbf89cd

Browse files
authored
Fix typos found with codespell (cea-hpc#514)
Fix typos found with the codespell utility [1]. [1] https://github.com/codespell-project/codespell
1 parent ea92744 commit fbf89cd

34 files changed

+57
-57
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Online documentation:
9292

9393
http://clustershell.readthedocs.org/
9494

95-
Github source respository:
95+
Github source repository:
9696

9797
https://github.com/cea-hpc/clustershell
9898

conf/groups.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ autodir: /etc/clustershell/groups.d $CFGDIR/groups.d
3434
# doesn't exist, the "local.cfg" file from autodir will be used.
3535
#
3636
# See the documentation for $CFGDIR, $SOURCE, $GROUP and $NODE upcall special
37-
# variables. Please remember that they are substitued before the shell command
37+
# variables. Please remember that they are substituted before the shell command
3838
# is effectively executed.
3939
#
4040
[local]

conf/groups.d/cluster.yaml.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Example of YAML groups config file with multiple sources.
44
# ^^^^^^^
5-
# Here you can describe your cluster nodes and equipments using several
5+
# Here you can describe your cluster nodes and equipment using several
66
# group sources.
77
#
88
# Example of group source use-cases are:

doc/man/man1/clush.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ preserve modification times and modes
275275
.INDENT 7.0
276276
.TP
277277
.BI \-f \ FANOUT\fP,\fB \ \-\-fanout\fB= FANOUT
278-
do not execute more than FANOUT commands at the same time, useful to limit resource usage. In tree mode, the same \fIfanout\fP value is used on the head node and on each gateway (the \fIfanout\fP value is propagated). That is, if the \fIfanout\fP is \fB16\fP, each gateway will initate up to \fB16\fP connections to their target nodes at the same time. Default \fIfanout\fP value is defined in \fBclush.conf\fP(5).
278+
do not execute more than FANOUT commands at the same time, useful to limit resource usage. In tree mode, the same \fIfanout\fP value is used on the head node and on each gateway (the \fIfanout\fP value is propagated). That is, if the \fIfanout\fP is \fB16\fP, each gateway will initiate up to \fB16\fP connections to their target nodes at the same time. Default \fIfanout\fP value is defined in \fBclush.conf\fP(5).
279279
.TP
280280
.BI \-l \ USER\fP,\fB \ \-\-user\fB= USER
281281
execute remote command as user

doc/man/man5/clush.conf.5

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ Size of the sliding window (fanout) of active commands for \fBclush\fP\&. This
7070
resources on the initiating hosts. In tree mode, the same \fIfanout\fP value is
7171
used on the head node and on each gateway (the \fIfanout\fP value is propagated).
7272
That is, if the \fIfanout\fP is \fB16\fP on the head node, each gateway will
73-
initate up to \fB16\fP connections to their target nodes at the same time.
73+
initiate up to \fB16\fP connections to their target nodes at the same time.
7474
.TP
7575
.B confdir
7676
Optional list of directory paths where clush should look for \fI\&.conf\fP files
7777
which define run modes that can then be activated with \fB\-\-mode\fP\&. All other
78-
clush config file settings defined here might be overriden in a run mode.
78+
clush config file settings defined here might be overridden in a run mode.
7979
Each mode section should have a name prefixed by "mode:" to clearly identify
8080
a section defining a mode. Duplicate modes are not allowed in those files.
8181
Configuration files that are not readable by the current user are ignored.

doc/sphinx/config.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following table describes available ``clush`` config file settings.
4848
| | :ref:`run modes <clushmode-config>` that can then |
4949
| | be activated with `--mode`. All other ``clush`` |
5050
| | config file settings defined in this table might |
51-
| | be overriden in a run mode. Each mode section |
51+
| | be overridden in a run mode. Each mode section |
5252
| | should have a name prefixed by "mode:" to clearly |
5353
| | identify a section defining a mode. Duplicate |
5454
| | modes are not allowed in those files. |
@@ -171,7 +171,7 @@ sudo::
171171
password_prompt: yes
172172
command_prefix: /usr/bin/sudo -S -p "''"
173173

174-
System administrators or users can easly create additional run modes by
174+
System administrators or users can easily create additional run modes by
175175
adding configuration files to :ref:`clush-config`'s ``confdir``.
176176

177177
More details about using run modes can be found :ref:`here <clush-modes>`.

doc/sphinx/guide/examples.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Example of a ``pp_jobs.py`` script::
240240
job_1 = job_server.submit(test_func,(),(),("os",))
241241
job_2 = job_server.submit(test_func,(),(),("os",))
242242

243-
# retrive the results
243+
# retrieve the results
244244
print job_1()
245245
print job_2()
246246

doc/sphinx/guide/nodesets.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ using the *-r* switch (see :ref:`nodeset-regroup`).
269269
Overriding default groups configuration
270270
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
271271

272-
It is possible to override the libary default groups configuration by changing
273-
the default :class:`.NodeSet` *resolver* object. Usually, this is done for
274-
testing or special purposes. Here is an example of how to override the
275-
*resolver* object using :func:`.NodeSet.set_std_group_resolver()` in order to
276-
use another configuration file::
272+
It is possible to override the library default groups configuration by
273+
changing the default :class:`.NodeSet` *resolver* object. Usually, this is
274+
done for testing or special purposes. Here is an example of how to override
275+
the *resolver* object using :func:`.NodeSet.set_std_group_resolver()` in order
276+
to use another configuration file::
277277

278278
>>> from ClusterShell.NodeSet import NodeSet, set_std_group_resolver
279279
>>> from ClusterShell.NodeUtils import GroupResolverConfig

doc/sphinx/guide/taskmgnt.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Task info keys and their default values:
9898
Below is an example of `print_debug` override. As you can see, we set the
9999
function `print_csdebug(task, s)` as the value. When debugging is enabled,
100100
this function will be called for any debug text line. For example, this
101-
function searchs for any known patterns and print a modified debug line to
101+
function searches for any known patterns and print a modified debug line to
102102
stdout when found::
103103

104104
def print_csdebug(task, s):
@@ -142,7 +142,7 @@ parameter (in seconds), for example::
142142

143143
task.shell("uname -r", nodes=remote_nodes, handler=ehandler, timeout=5)
144144

145-
This is the prefered way to specify a command timeout.
145+
This is the preferred way to specify a command timeout.
146146
:meth:`.EventHandler.ev_timeout` event is generated before the worker has finished to
147147
indicate that some nodes have timed out. You may then retrieve the nodes with
148148
:meth:`.DistantWorker.iter_keys_timeout()`.
@@ -185,7 +185,7 @@ way all scheduled workers and timers. Using such a timeout ensures that the
185185
Task will not exceed a given time for all its scheduled works. You can also
186186
configure per-worker timeout that generates an event
187187
:meth:`.EventHandler.ev_timeout` but will not raise an exception, allowing the
188-
Task to continue. Indeed, using a per-worker timeout is the prefered way for
188+
Task to continue. Indeed, using a per-worker timeout is the preferred way for
189189
most applications.
190190

191191

doc/sphinx/release.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Configuration
102102
Tree mode
103103
"""""""""
104104

105-
* Fix start by implementing a proper asynchrounous start for :class:`.TreeWorker`,
105+
* Fix start by implementing a proper asynchronous start for :class:`.TreeWorker`,
106106
which is now only triggered when the engine actually starts.
107107

108108
* Fix error with intermediate gateways
@@ -226,7 +226,7 @@ changes in 1.8.
226226
Finally, :ref:`cluset <cluset-tool>`/:ref:`nodeset <nodeset-tool>` have been
227227
improved by adding support for:
228228

229-
* litteral new line in ``-S``
229+
* literal new line in ``-S``
230230

231231
* multiline shell variables in options
232232

doc/sphinx/tools/clush.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ variable::
322322

323323
$ export CLUSTERSHELL_GW_PYTHON_EXECUTABLE=/path/to/python3
324324

325-
.. note:: It is highly recommended to have the same Python interpeter
325+
.. note:: It is highly recommended to have the same Python interpreter
326326
installed on all gateways and the root node.
327327

328328
Debugging Tree mode
@@ -517,8 +517,8 @@ executed). These single-character interactive commands are detailed below:
517517
+------------------------------+-----------------------------------------------+
518518
| ``clush> !<COMMAND>`` | execute ``<COMMAND>`` on the local system |
519519
+------------------------------+-----------------------------------------------+
520-
| ``clush> =`` | toggle the ouput format (gathered or standard |
521-
| | mode) |
520+
| ``clush> =`` | toggle the output format (gathered or |
521+
| | standard mode) |
522522
+------------------------------+-----------------------------------------------+
523523

524524
To leave an interactive session, type ``quit`` or *Control-D*. As of version
@@ -739,9 +739,9 @@ By default, ClusterShell supports the following worker identifiers:
739739
rely on any external tool and provides command line placeholders described
740740
below:
741741

742-
* ``%h`` and ``%host`` are substitued with each *target hostname*
743-
* ``%hosts`` is substitued with the full *target nodeset*
744-
* ``%n`` and ``%rank`` are substitued with the remote *rank* (0 to n-1)
742+
* ``%h`` and ``%host`` are substituted with each *target hostname*
743+
* ``%hosts`` is substituted with the full *target nodeset*
744+
* ``%n`` and ``%rank`` are substituted with the remote *rank* (0 to n-1)
745745

746746
For example, the following would request the exec worker to locally run
747747
multiple *ipmitool* commands across the hosts foo[0-10] and automatically

doc/txt/clush.conf.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ fanout
4545
resources on the initiating hosts. In tree mode, the same `fanout` value is
4646
used on the head node and on each gateway (the `fanout` value is propagated).
4747
That is, if the `fanout` is **16** on the head node, each gateway will
48-
initate up to **16** connections to their target nodes at the same time.
48+
initiate up to **16** connections to their target nodes at the same time.
4949
confdir
5050
Optional list of directory paths where clush should look for `.conf` files
5151
which define run modes that can then be activated with ``--mode``. All other
52-
clush config file settings defined here might be overriden in a run mode.
52+
clush config file settings defined here might be overridden in a run mode.
5353
Each mode section should have a name prefixed by "mode:" to clearly identify
5454
a section defining a mode. Duplicate modes are not allowed in those files.
5555
Configuration files that are not readable by the current user are ignored.

doc/txt/clush.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ File copying:
176176

177177
Connection options:
178178
-f FANOUT, --fanout=FANOUT
179-
do not execute more than FANOUT commands at the same time, useful to limit resource usage. In tree mode, the same *fanout* value is used on the head node and on each gateway (the *fanout* value is propagated). That is, if the *fanout* is **16**, each gateway will initate up to **16** connections to their target nodes at the same time. Default *fanout* value is defined in ``clush.conf``\(5).
179+
do not execute more than FANOUT commands at the same time, useful to limit resource usage. In tree mode, the same *fanout* value is used on the head node and on each gateway (the *fanout* value is propagated). That is, if the *fanout* is **16**, each gateway will initiate up to **16** connections to their target nodes at the same time. Default *fanout* value is defined in ``clush.conf``\(5).
180180
-l USER, --user=USER
181181
execute remote command as user
182182
-o OPTIONS, --options=OPTIONS

lib/ClusterShell/CLI/Clush.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def main():
10021002
# Force user_interaction if Clush._f_user_interaction for test purposes
10031003
user_interaction = hasattr(sys.modules[__name__], '_f_user_interaction')
10041004
if not options.nostdin:
1005-
# Try user interaction: check for foreground ttys presence (ouput)
1005+
# Try user interaction: check for foreground ttys presence (output)
10061006
stdout_isafgtty = sys.stdout.isatty() and \
10071007
os.tcgetpgrp(sys.stdout.fileno()) == os.getpgrp()
10081008
user_interaction |= stdin_isafgtty and stdout_isafgtty

lib/ClusterShell/CLI/Display.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Display(object):
6868
SEP = "-" * 15
6969

7070
class _KeySet(set):
71-
"""Private NodeSet substition to display raw keys"""
71+
"""Private NodeSet substitution to display raw keys"""
7272
def __str__(self):
7373
return ",".join(self)
7474

@@ -153,7 +153,7 @@ def __init__(self, options, config=None, color=None):
153153
self.verbosity = VERB_DEBUG
154154

155155
def _has_cli_color(self):
156-
"""Tests CLICOLOR environment variable to determine wether to
156+
"""Tests CLICOLOR environment variable to determine whether to
157157
use color or not on output."""
158158
# When CLICOLOR_FORCE is set to something else than 0
159159
# colors must be used.

lib/ClusterShell/CLI/Nodeset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def nodeset():
200200
print("WARNING: option group source \"%s\" ignored"
201201
% options.groupsource, file=sys.stderr)
202202

203-
# We want -s <groupsource> to act as a substition of default groupsource
203+
# We want -s <groupsource> to act as a substitution of default groupsource
204204
# (ie. it's not necessary to prefix group names by this group source).
205205
if options.groupsource:
206206
group_resolver.default_source_name = options.groupsource

lib/ClusterShell/Communication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
of several classes. They can be converted into XML to be sent over SSH links
2828
through a Channel instance.
2929
30-
In the other side, XML is parsed and new message objects are instanciated.
30+
In the other side, XML is parsed and new message objects are instantiated.
3131
3232
Communication channels have been implemented as ClusterShell events handlers.
3333
Whenever a message chunk is read, the data is given to a SAX XML parser, that

lib/ClusterShell/Engine/EPoll.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def runloop(self, timeout):
182182

183183
self._current_stream = None
184184

185-
# apply any changes occured during processing
185+
# apply any changes occurred during processing
186186
if client.registered:
187187
self.set_events(client, stream)
188188

lib/ClusterShell/Engine/Poll.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def runloop(self, timeout):
184184

185185
self._current_stream = None
186186

187-
# apply any changes occured during processing
187+
# apply any changes occurred during processing
188188
if client.registered:
189189
self.set_events(client, stream)
190190

lib/ClusterShell/Engine/Select.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def runloop(self, timeout):
126126
logging.getLogger(__name__).error(msg)
127127
raise
128128

129-
# iterate over fd on which events occured
129+
# iterate over fd on which events occurred
130130
for fd in set(r_ready) | set(w_ready):
131131

132132
# get client instance
@@ -165,7 +165,7 @@ def runloop(self, timeout):
165165
# post processing
166166
self._current_stream = None
167167

168-
# apply any changes occured during processing
168+
# apply any changes occurred during processing
169169
if client.registered:
170170
self.set_events(client, stream)
171171

lib/ClusterShell/Propagation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class PropagationTreeRouter(object):
4848
directly connected node to use to forward a message to a remote
4949
node.
5050
51-
Upon instanciation, the router will parse the topology tree to
51+
Upon instantiation, the router will parse the topology tree to
5252
generate its routing table.
5353
"""
5454
def __init__(self, root, topology, fanout=0):

lib/ClusterShell/Task.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Task(object):
155155
156156
A common need is to set a maximum delay for command execution, especially
157157
when the command time is not known. Doing this with ClusterShell Task is
158-
very straighforward. To limit the execution time on each node, use the
158+
very straightforward. To limit the execution time on each node, use the
159159
timeout parameter of shell() or run() methods to set a delay in seconds,
160160
like:
161161

lib/ClusterShell/Topology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def _routes_to_tng(self):
376376
instances. Loops are not very expensive here as the number of routes
377377
will always be much lower than the number of nodes.
378378
"""
379-
# instanciate nodegroups as biggest groups of nodes sharing both parent
379+
# instantiate nodegroups as biggest groups of nodes sharing both parent
380380
# and destination
381381
aggregated_src = self._routing.aggregated_src
382382
for route in self._routing:

lib/ClusterShell/Worker/Exec.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, node, command, worker, stderr, timeout, autoclose=False,
8585

8686
def _build_cmd(self):
8787
"""
88-
Build the shell command line to start the commmand.
88+
Build the shell command line to start the command.
8989
9090
Return a tuple containing command and arguments as a string or a list
9191
of string, and a dict of additional environment variables. None could
@@ -224,7 +224,7 @@ def __init__(self, node, source, dest, worker, stderr, timeout, autoclose,
224224

225225
def _build_cmd(self):
226226
"""
227-
Build the shell command line to start the rcp commmand.
227+
Build the shell command line to start the rcp command.
228228
Return an array of command and arguments.
229229
"""
230230
source = _replace_cmd(self.source, self.key, self.rank)

lib/ClusterShell/Worker/Pdsh.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, node, command, worker, stderr, timeout, autoclose=False,
4747

4848
def _build_cmd(self):
4949
"""
50-
Build the shell command line to start the commmand.
50+
Build the shell command line to start the command.
5151
Return an array of command and arguments.
5252
"""
5353
task = self.worker.task
@@ -236,7 +236,7 @@ class WorkerPdsh(ExecWorker):
236236
237237
Known limitations:
238238
- write() is not supported by WorkerPdsh
239-
- return codes == 0 are not garanteed when a timeout is used (rc > 0
239+
- return codes == 0 are not guaranteed when a timeout is used (rc > 0
240240
are fine)
241241
"""
242242

lib/ClusterShell/Worker/Rsh.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, node, command, worker, stderr, timeout, autoclose=False,
4444

4545
def _build_cmd(self):
4646
"""
47-
Build the shell command line to start the rsh commmand.
47+
Build the shell command line to start the rsh command.
4848
Return an array of command and arguments.
4949
"""
5050
# Does not support 'connect_timeout'
@@ -94,7 +94,7 @@ class RcpClient(CopyClient):
9494

9595
def _build_cmd(self):
9696
"""
97-
Build the shell command line to start the rcp commmand.
97+
Build the shell command line to start the rcp command.
9898
Return an array of command and arguments.
9999
"""
100100

lib/ClusterShell/Worker/Ssh.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SshClient(ExecClient):
3838

3939
def _build_cmd(self):
4040
"""
41-
Build the shell command line to start the ssh commmand.
41+
Build the shell command line to start the ssh command.
4242
Return an array of command and arguments.
4343
"""
4444

@@ -85,7 +85,7 @@ class ScpClient(CopyClient):
8585

8686
def _build_cmd(self):
8787
"""
88-
Build the shell command line to start the scp commmand.
88+
Build the shell command line to start the scp command.
8989
Return an array of command and arguments.
9090
"""
9191

lib/ClusterShell/Worker/Tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def __init__(self, nodes, handler, timeout, **kwargs):
214214
autoclose=True)
215215

216216
def _start(self):
217-
# Engine has started: initalize router
217+
# Engine has started: initialize router
218218
self.topology = self.topology or self.task.topology
219219
self.router = self.task._default_router(self.router)
220220
self._launch(self.nodes)

tests/NodeSetTest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ def testBinarySanityCheckNotImplementedSubtle(self):
15201520
self.assertEqual(ns1.__or__(ns2), NotImplemented)
15211521
self.assertEqual(ns1.__sub__(ns2), NotImplemented)
15221522
self.assertEqual(ns1.__xor__(ns2), NotImplemented)
1523-
# Should implicitely raises TypeError if the real operator
1523+
# Should implicitly raises TypeError if the real operator
15241524
# version is invoked. To test that, we perform a manual check
15251525
# as an additional function would be needed to check with
15261526
# assertRaises():

0 commit comments

Comments
 (0)