mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix spelling mistake of beginning
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
This commit is contained in:
parent
8c27fc8baf
commit
066aea0114
4 changed files with 5 additions and 5 deletions
|
@ -725,7 +725,7 @@ def start(uri=None, tag_prefix="salt/engines/libvirt_events", filters=None):
|
|||
|
||||
:param uri: libvirt URI to listen on.
|
||||
Defaults to None to pick the first available local hypervisor
|
||||
:param tag_prefix: the begining of the salt event tag to use.
|
||||
:param tag_prefix: the beginning of the salt event tag to use.
|
||||
Defaults to 'salt/engines/libvirt_events'
|
||||
:param filters: the list of event of listen on. Defaults to 'all'
|
||||
"""
|
||||
|
|
|
@ -1105,7 +1105,7 @@ def subvolume_list(
|
|||
res = __salt__["cmd.run_all"](cmd)
|
||||
salt.utils.fsutils._verify_run(res)
|
||||
|
||||
# Parse the output. ID and gen are always at the begining, and
|
||||
# Parse the output. ID and gen are always at the beginning, and
|
||||
# path is always at the end. There is only one column that
|
||||
# contains space (top level), and the path value can also have
|
||||
# spaces. The issue is that we do not know how many spaces do we
|
||||
|
|
|
@ -648,7 +648,7 @@ def _execute(cur, qry, args=None):
|
|||
|
||||
def _sanitize_comments(content):
|
||||
# Remove comments which might affect line by line parsing
|
||||
# Regex should remove any text begining with # (or --) not inside of ' or "
|
||||
# Regex should remove any text beginning with # (or --) not inside of ' or "
|
||||
content = re.sub(
|
||||
r"""(['"](?:[^'"]+|(?<=\\)['"])*['"])|#[^\n]*""",
|
||||
lambda m: m.group(1) or "",
|
||||
|
|
|
@ -2804,7 +2804,7 @@ def del_repo(repo, basedir=None, **kwargs): # pylint: disable=W0613
|
|||
del filerepos[stanza]["comments"]
|
||||
content += "\n[{0}]".format(stanza)
|
||||
for line in filerepos[stanza]:
|
||||
# A whitespace is needed at the begining of the new line in order
|
||||
# A whitespace is needed at the beginning of the new line in order
|
||||
# to avoid breaking multiple line values allowed on repo files.
|
||||
value = filerepos[stanza][line]
|
||||
if isinstance(value, six.string_types) and "\n" in value:
|
||||
|
@ -2943,7 +2943,7 @@ def mod_repo(repo, basedir=None, **kwargs):
|
|||
)
|
||||
content += "[{0}]\n".format(stanza)
|
||||
for line in six.iterkeys(filerepos[stanza]):
|
||||
# A whitespace is needed at the begining of the new line in order
|
||||
# A whitespace is needed at the beginning of the new line in order
|
||||
# to avoid breaking multiple line values allowed on repo files.
|
||||
value = filerepos[stanza][line]
|
||||
if isinstance(value, six.string_types) and "\n" in value:
|
||||
|
|
Loading…
Add table
Reference in a new issue