Skip to content

Commit

Permalink
Merge freeze into master (saltstack#60396)
Browse files Browse the repository at this point in the history
* Merge 3002.6 bugfix changes (saltstack#59822)

* Pass `CI_RUN` as an environment variable to the test run.

This allows us to know if we're running the test suite under a CI
environment or not and adapt/adjust if needed

* Migrate `unit.setup` to PyTest

* Backport ae36b15 just for test_install.py

* Only skip tests on CI runs

* Always store git sha in _version.py during installation

* Fix PEP440 compliance.

The wheel metadata version 1.2 states that the package version MUST be
PEP440 compliant.

This means that instead of `3002.2-511-g033c53eccb`, the salt version
string should look like `3002.2+511.g033c53eccb`, a post release of
`3002.2` ahead by 511 commits with the git sha `033c53eccb`

* Fix and migrate `tests/unit/test_version.py` to PyTest

* Skip test if `easy_install` is not available

* We also need to be PEP440 compliant when there's no git history

* Allow extra_filerefs as sanitized kwargs for SSH client

* Fix regression on cmd.run when passing tuples as cmd

Co-authored-by: Alexander Graul <agraul@suse.com>

* Add unit tests to ensure cmd.run accepts tuples

* Add unit test to check for extra_filerefs on SSH opts

* Add changelog file

* Fix comment for test case

* Fix unit test to avoid failing on Windows

* Skip failing test on windows

* Fix test to work on Windows

* Add all ssh kwargs to sanitize_kwargs method

* Run pre-commit

* Fix pylint

* Fix cmdmod loglevel and module_names tests

* Fix pre-commit

* Skip ssh tests if binary does not exist

* Use setup_loader for cmdmod test

* Prevent argument injection in restartcheck

* Add changelog for restartcheck fix

* docs_3002.6

* Add back tests removed in merge

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
Co-authored-by: Bryce Larson <brycel@vmware.com>
Co-authored-by: Pablo Suárez Hernández <psuarezhernandez@suse.com>
Co-authored-by: Alexander Graul <agraul@suse.com>
Co-authored-by: Frode Gundersen <fgundersen@saltstack.com>

* Remove glance state module in favor of glance_image

* update wording in changelog

* bump deprecation warning to Silicon.

* Updating warnutil version to Phosphorous.

* Update salt/modules/keystone.py

Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>

* Check $HOMEBREW_PREFIX when linking against libcrypto

When loading `libcrypto`, Salt checks for a Homebrew installation of `openssl`
at Homebrew's default prefix of `/usr/local`. However, on Apple Silicon Macs,
Homebrew's default installation prefix is `/opt/homebrew`. On all platforms,
the prefix is configurable.  If Salt doesn't find one of those `libcrypto`s,
it will fall back on the un-versioned `/usr/lib/libcrypto.dylib`, which will
cause the following crash:

    Application Specific Information:
    /usr/lib/libcrypto.dylib
    abort() called
    Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.

This commit checks $HOMEBREW_PREFIX instead of hard-coding `/usr/local`.

* Add test case

* Add changelog for 59808

* Add changelog entry

* Make _find_libcrypto fail on Big Sur if it can't find a library

Right now, if `_find_libcrypto` can't find any externally-managed versions of
libcrypto, it will fall back on the pre-Catalina un-versioned system libcrypto.
This does not exist on Big Sur and it would be better to raise an exception
here rather than crashing later when trying to open it.

* Update _find_libcrypto tests

This commit simplifies the unit tests for _find_libcrypto by mocking out the
host's filesystem and testing the common libcrypto installations (brew, ports,
etc.) on Big Sur. It simplifies the tests for falling back on system versions
of libcrypto on previous versions of macOS.

* Fix description of test_find_libcrypto_with_system_before_catalina

* Patch sys.platform for test_rsax931 tests

* modules/match: add missing "minion_id" in Pillar example

The documented Pillar example for `match.filter_by` lacks the `minion_id` parameter. Without it, the assignment won't work as expected.
- fix documentation
- add tests:
  - to prove the misbehavior of the documented example
  - to prove the proper behaviour when supplying `minion_id`
  - to ensure some misbehaviour observed with compound matchers doesn't occur

* Fix for issue saltstack#59773

- When instantiating the loader grab values of grains and pillars if
  they are NamedLoaderContext instances.
- The loader uses a copy of opts.
- Impliment deepcopy on NamedLoaderContext instances.

* Add changelog for saltstack#59773

* _get_initial_pillar function returns pillar

* Fix linter issues

* Clean up test

* Bump deprecation release for neutron

* Uncomment Sulfur release name

* Removing the _ext_nodes deprecation warning and alias.

* Adding changelog.

* Renaming changelog file.

* Update 59804.removed

* Initial pass at fips_mode config option

* Fix pre-commit

* Fix tests and add changelog

* update docs 3003

* update docs 3003 - newline

* Fix warts in changelog

* update releasenotes 3003

* add ubuntu-2004-amd64 m2crypto pycryptodome and tcp tests

* add distro_arch

* changing the cloud platforms file missed in 1a9b7be

* Update __utils__ calls to import utils in azure

* Add changelog for 59744

* Fix azure unit tests and move to pytest

* Use contextvars from site-packages for thin

If a contextvars package exists one of the site-packages locations use
it for the generated thin tarball. This overrides python's builtin
contextvars and allows salt-ssh to work with python <=3.6 even when the
master's python is >3.6 (Fixes saltstack#59942)

* Add regression test for saltstack#59942

* Add changelog for saltstack#59942

* Update filemap to include test_py_versions

* Fix broken thin tests

* Always install the `contextvars` backport, even on Py3.7+

Without this change, salt-ssh cannot target systems with Python <= 3.6

* Use salt-factories to handle the container. Don't override default roster

* Fix thin tests on windows

* No need to use warn log level here

* Fix getsitepackages for old virtualenv versions

* Add explicit pyobjc reqs

* Add back the passthrough stuff

* Remove a line so pre-commit will run

* Bugfix release docs

* Bugfix release docs

* Removing pip-compile log files

* Bump requirements to address a few security issues

* Address traceback on macOS

```
Traceback (most recent call last):
  File "setup.py", line 1448, in <module>
    setup(distclass=SaltDistribution)
  File "/Users/jenkins/setup-tests/.venv/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/opt/salt/lib/python3.7/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "setup.py", line 1068, in __init__
    self.update_metadata()
  File "setup.py", line 1074, in update_metadata
    attrvalue = getattr(self, attrname, None)
  File "setup.py", line 1182, in _property_install_requires
    install_requires += _parse_requirements_file(reqfile)
  File "setup.py", line 270, in _parse_requirements_file
    platform.python_version(), _parse_op(op), _parse_ver(ver)
  File "setup.py", line 247, in _check_ver
    return getattr(operator, "__{}__".format(op))(pyver, wanted)
  File "/opt/salt/lib/python3.7/distutils/version.py", line 46, in __eq__
    c = self._cmp(other)
  File "/opt/salt/lib/python3.7/distutils/version.py", line 337, in _cmp
    if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'
```

* Replace `saltstack.com` with `saltproject.io` on URLs being tested

* Add back support to load old entrypoints by iterating instead of type checking

Fixes saltstack#59961

* Fix issue saltstack#59975

* Fix pillar serialization for jinja saltstack#60083

* Fix test

* Add changelog for saltstack#60083

* Update changelog and release for 3003.1

* Remove the changelog source refs

* Add connect to IPCMessageSubscriber's async_methods

Fixes saltstack#60049 by making sure an IPCMessageSubscriber that is wrapped by
SyncWrapper has a connect method that runs the coroutine rather than
returns a fugure.

* Add changelog for saltstack#60049

* Update 60049.fixed

* Fix coroutine spelling error

Co-authored-by: Wayne Werner <waynejwerner@gmail.com>

* IPC on windows cannot use socket paths

Fixes saltstack#60298

* Update Jinja2 and lxml due to security related bugfix releases

Jinja2
------

CVE-2020-28493
moderate severity
Vulnerable versions: < 2.11.3
Patched version: 2.11.3

This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDOS vulnerability of the regex is mainly due to the sub-pattern [a-zA-Z0-9.-]+.[a-zA-Z0-9.-]+ This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory.

lxml
----

CVE-2021-28957
moderate severity
Vulnerable versions: < 4.6.3
Patched version: 4.6.3

An XSS vulnerability was discovered in the python lxml clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.

* fix github actions jobs on branch until bullseye comes out

* Upgrade to `six==1.16.0` to avoid problems on CI runs

```
13:59:02  nox > Session invoke-pre-commit was successful.
13:59:02  nox > Running session invoke-pre-commit
13:59:02  nox > pip install --progress-bar=off -r requirements/static/ci/py3.7/invoke.txt
13:59:02  Collecting blessings==1.7
13:59:02    Using cached blessings-1.7-py3-none-any.whl (18 kB)
13:59:02  Collecting invoke==1.4.1
13:59:02    Using cached invoke-1.4.1-py3-none-any.whl (210 kB)
13:59:02  Collecting pyyaml==5.3.1
13:59:02    Using cached PyYAML-5.3.1.tar.gz (269 kB)
13:59:02  Collecting six==1.15.0
13:59:02    Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
13:59:02  Building wheels for collected packages: pyyaml
13:59:02    Building wheel for pyyaml (setup.py) ... -� �\� �|� �/� �-� �\� �|� �done
13:59:02    Created wheel for pyyaml: filename=PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl size=546391 sha256=e42e1d66cc32087f4d33ceb81268c86b59f1a97029b19459f91b8d6ad1430167
13:59:02    Stored in directory: /var/jenkins/.cache/pip/wheels/5e/03/1e/e1e954795d6f35dfc7b637fe2277bff021303bd9570ecea653
13:59:02  Successfully built pyyaml
13:59:02  Installing collected packages: six, pyyaml, invoke, blessings
13:59:02    Attempting uninstall: six
13:59:02      Found existing installation: six 1.16.0
13:59:02      Uninstalling six-1.16.0:
13:59:02  ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/var/jenkins/.cache/pre-commit/repomw8oee1s/py_env-python3/lib/python3.7/site-packages/__pycache__/six.cpython-37.pyc'
13:59:02
13:59:02  nox > Command pip install --progress-bar=off -r requirements/static/ci/py3.7/invoke.txt failed with exit code 1
13:59:02  nox > Session invoke-pre-commit failed.
```

* add changelog for saltstack#59982

* Regression test for saltstack#56273

* Fix race condition in batch. saltstack#56273

* Add changelog for saltstack#56273

* Update salt/client/__init__.py

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>

* Update doc for salt/client

* Update changelog/56273.fixed

Thoreau said, "Simplify, Simplify"

* Update docs

* Update docs

* Update CHANGELOG.md

* Update 3003.1.rst

* Fix changelog

Co-authored-by: Daniel Wozniak <dwozniak@saltstack.com>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
Co-authored-by: Bryce Larson <brycel@vmware.com>
Co-authored-by: Pablo Suárez Hernández <psuarezhernandez@suse.com>
Co-authored-by: Alexander Graul <agraul@suse.com>
Co-authored-by: Frode Gundersen <fgundersen@saltstack.com>
Co-authored-by: Gareth J. Greenaway <gareth@saltstack.com>
Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
Co-authored-by: Hoa-Long Tam <hoalong@apple.com>
Co-authored-by: krionbsd <krion@freebsd.org>
Co-authored-by: Elias Probst <e.probst@ssc-services.de>
Co-authored-by: Daniel A. Wozniak <dwozniak@vmware.com>
Co-authored-by: Frode Gundersen <frogunder@gmail.com>
Co-authored-by: twangboy <slee@saltstack.com>
Co-authored-by: twangboy <leesh@vmware.com>
Co-authored-by: ScriptAutomate <derek@icanteven.io>
Co-authored-by: Wayne Werner <waynejwerner@gmail.com>
  • Loading branch information
18 people authored and truzzon committed Aug 10, 2021
1 parent f61d1c8 commit ba3d2c2
Show file tree
Hide file tree
Showing 20 changed files with 379 additions and 44 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Versions are `MAJOR.PATCH`.

# Changelog

Salt 3003.1 (2021-04-20)
Salt 3003.1 (2021-06-08)
========================

Removed
Expand All @@ -22,6 +22,17 @@ Fixed
- Import salt.utils.azurearm instead of using __utils__ from loader in azure cloud. This fixes an issue where __utils__ would become unavailable when we are using the ThreadPool in azurearm. (#59744)
- Use contextvars libary from site-packages if it is intalled. Fixes salt ssh for targets with python <=3.6 (#59942)

Fixed
-----

- Fixed race condition in batch logic. Added `listen` option to `LocalClient` to prevent event subscriber from purging cached events during batch iteration. (#56273)
- Fixed dependencies for Amazon Linux 2 on https://repo.saltproject.io since Amazon Linux 2 now provides some of the python libraries in their repos. (#59982)
- IPCMessageSubscriber objects expose their connect method as a coroutine so they can be wrapped by SyncWrapper. (#60049)
- Import salt.utils.azurearm instead of using __utils__ from loader in azure cloud. This fixes an issue where __utils__ would become unavailable when we are using the ThreadPool in azurearm. (#59744)
- Use contextvars libary from site-packages if it is intalled. Fixes salt ssh for targets with python <=3.6 (#59942)
- Add back support to load old entrypoints by iterating instead of type checking (#59961)
- Pass the value of the `__grains__` NamedContext to salt.pillar.get_pillar, instead of the NamedContext object itself. (#59975)
- Fix pillar serialization in jinja templates (#60083)

Salt 3003 (2021-03-05)
======================
Expand Down
13 changes: 9 additions & 4 deletions doc/topics/releases/3003.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ Salt 3003.1 Release Notes
Version 3003.1 is a bug fix release for :ref:`3003 <release-3003>`.

Removed
=======
-------

- Removed support for Ubuntu 16.04 (#59913)


Fixed
=====
-----

- Fixed race condition in batch logic. Added `listen` option to `LocalClient` to prevent event subscriber from purging cached events during batch iteration. (#56273)
- Fixed dependencies for Amazon Linux 2 on https://repo.saltproject.io since Amazon Linux 2 now provides some of the python libraries in their repos. (#59982)
- IPCMessageSubscriber objects expose their connect method as a coroutine so they can be wrapped by SyncWrapper. (#60049)
- Import salt.utils.azurearm instead of using __utils__ from loader in azure cloud. This fixes an issue where __utils__ would become unavailable when we are using the ThreadPool in azurearm. (#59744)
- Use contextvars libary from site-packages if it is intalled. Fixes salt ssh for targets with python <=3.6 (#59942)
- Use contextvars libary from site-packages if it is intalled. Fixes salt ssh for targets with python <=3.6 (#59942)
- Add back support to load old entrypoints by iterating instead of type checking (#59961)
- Pass the value of the ``__grains__`` NamedContext to salt.pillar.get_pillar, instead of the NamedContext object itself. (#59975)
- Fix pillar serialization in jinja templates (#60083)
6 changes: 3 additions & 3 deletions requirements/static/ci/py3.5/cloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ntlm-auth==1.3.0
# smbprotocol
profitbricks==4.1.3
# via -r requirements/static/ci/cloud.in
pyasn1==0.4.5
pyasn1==0.4.8
# via smbprotocol
pycparser==2.19
# via cffi
Expand All @@ -36,7 +36,7 @@ pywinrm==0.3.0
# via -r requirements/static/ci/cloud.in
requests-ntlm==1.1.0
# via pywinrm
requests==2.21.0
requests==2.25.1
# via
# apache-libcloud
# profitbricks
Expand All @@ -51,7 +51,7 @@ six==1.16.0
# smbprotocol
smbprotocol==0.1.1
# via pypsexec
urllib3==1.24.2
urllib3==1.26.4
# via requests
xmltodict==0.12.0
# via pywinrm
6 changes: 3 additions & 3 deletions requirements/static/ci/py3.6/cloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ntlm-auth==1.3.0
# smbprotocol
profitbricks==4.1.3
# via -r requirements/static/ci/cloud.in
pyasn1==0.4.5
pyasn1==0.4.8
# via smbprotocol
pycparser==2.19
# via cffi
Expand All @@ -36,7 +36,7 @@ pywinrm==0.3.0
# via -r requirements/static/ci/cloud.in
requests-ntlm==1.1.0
# via pywinrm
requests==2.21.0
requests==2.25.1
# via
# apache-libcloud
# profitbricks
Expand All @@ -51,7 +51,7 @@ six==1.16.0
# smbprotocol
smbprotocol==0.1.1
# via pypsexec
urllib3==1.24.2
urllib3==1.26.4
# via requests
xmltodict==0.12.0
# via pywinrm
6 changes: 3 additions & 3 deletions requirements/static/ci/py3.7/cloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ntlm-auth==1.3.0
# smbprotocol
profitbricks==4.1.3
# via -r requirements/static/ci/cloud.in
pyasn1==0.4.5
pyasn1==0.4.8
# via smbprotocol
pycparser==2.19
# via cffi
Expand All @@ -36,7 +36,7 @@ pywinrm==0.3.0
# via -r requirements/static/ci/cloud.in
requests-ntlm==1.1.0
# via pywinrm
requests==2.21.0
requests==2.25.1
# via
# apache-libcloud
# profitbricks
Expand All @@ -51,7 +51,7 @@ six==1.16.0
# smbprotocol
smbprotocol==0.1.1
# via pypsexec
urllib3==1.24.2
urllib3==1.26.4
# via requests
xmltodict==0.12.0
# via pywinrm
6 changes: 3 additions & 3 deletions requirements/static/ci/py3.8/cloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ntlm-auth==1.3.0
# smbprotocol
profitbricks==4.1.3
# via -r requirements/static/ci/cloud.in
pyasn1==0.4.5
pyasn1==0.4.8
# via smbprotocol
pycparser==2.19
# via cffi
Expand All @@ -36,7 +36,7 @@ pywinrm==0.3.0
# via -r requirements/static/ci/cloud.in
requests-ntlm==1.1.0
# via pywinrm
requests==2.21.0
requests==2.25.1
# via
# apache-libcloud
# profitbricks
Expand All @@ -51,7 +51,7 @@ six==1.16.0
# smbprotocol
smbprotocol==0.1.1
# via pypsexec
urllib3==1.24.2
urllib3==1.26.4
# via requests
xmltodict==0.12.0
# via pywinrm
6 changes: 3 additions & 3 deletions requirements/static/ci/py3.9/cloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ntlm-auth==1.3.0
# smbprotocol
profitbricks==4.1.3
# via -r requirements/static/ci/cloud.in
pyasn1==0.4.5
pyasn1==0.4.8
# via smbprotocol
pycparser==2.19
# via cffi
Expand All @@ -36,7 +36,7 @@ pywinrm==0.3.0
# via -r requirements/static/ci/cloud.in
requests-ntlm==1.1.0
# via pywinrm
requests==2.21.0
requests==2.25.1
# via
# apache-libcloud
# profitbricks
Expand All @@ -51,7 +51,7 @@ six==1.16.0
# smbprotocol
smbprotocol==0.1.1
# via pypsexec
urllib3==1.24.2
urllib3==1.26.4
# via requests
xmltodict==0.12.0
# via pywinrm
6 changes: 3 additions & 3 deletions requirements/static/pkg/py3.8/windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ msgpack==0.6.2
pathtools==0.1.2 # via watchdog
portend==2.6 # via cherrypy
psutil==5.8.0
pyasn1==0.4.5
pyasn1==0.4.8
pycparser==2.19
pycryptodomex==3.9.7
pycurl==7.43.0.5
Expand All @@ -45,13 +45,13 @@ pytz==2019.3 # via tempora
pywin32==227
pyyaml==5.4.1
pyzmq==19.0.0
requests==2.21.0
requests==2.25.1
setproctitle==1.1.10
six==1.16.0 # via cheroot, cherrypy, cryptography, pyopenssl, python-dateutil, tempora
smmap2==2.0.5
tempora==1.14.1 # via portend
timelib==0.2.5
urllib3==1.24.3 # via requests
urllib3==1.26.4 # via requests
watchdog==0.9.0
wheel==0.33.4
wmi==1.4.9
Expand Down
6 changes: 3 additions & 3 deletions requirements/static/pkg/py3.9/windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ msgpack==0.6.2
pathtools==0.1.2 # via watchdog
portend==2.6 # via cherrypy
psutil==5.8.0
pyasn1==0.4.5
pyasn1==0.4.8
pycparser==2.19
pycryptodomex==3.9.7
pycurl==7.43.0.5
Expand All @@ -45,13 +45,13 @@ pytz==2019.3 # via tempora
pywin32==227
pyyaml==5.4.1
pyzmq==19.0.0
requests==2.21.0
requests==2.25.1
setproctitle==1.1.10
six==1.16.0 # via cheroot, cherrypy, cryptography, pyopenssl, python-dateutil, tempora
smmap2==2.0.5
tempora==1.14.1 # via portend
timelib==0.2.5
urllib3==1.24.3 # via requests
urllib3==1.26.4 # via requests
watchdog==0.9.0
wheel==0.33.4
wmi==1.4.9
Expand Down
24 changes: 19 additions & 5 deletions salt/cli/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,31 @@
class Batch:
"""
Manage the execution of batch runs
"""

def __init__(self, opts, eauth=None, quiet=False, parser=None):
def __init__(self, opts, eauth=None, quiet=False, _parser=None):
"""
:param dict opts: A config options dictionary.
:param dict eauth: An eauth config to use.
The default is an empty dict.
:param bool quiet: Supress printing to stdout
The default is False.
"""
self.opts = opts
self.eauth = eauth if eauth else {}
self.pub_kwargs = eauth if eauth else {}
self.quiet = quiet
self.local = salt.client.get_local_client(opts["conf_file"])
self.minions, self.ping_gen, self.down_minions = self.__gather_minions()
self.options = parser
self.options = _parser
# Passing listen True to local client will prevent it from purging
# cahced events while iterating over the batches.
self.local = salt.client.get_local_client(opts["conf_file"], listen=True)

def __gather_minions(self):
def gather_minions(self):
"""
Return a list of minions to use for the batch run
"""
Expand Down Expand Up @@ -106,6 +119,7 @@ def run(self):
"""
Execute the batch run
"""
self.minions, self.ping_gen, self.down_minions = self.gather_minions()
args = [
[],
self.opts["fun"],
Expand Down
2 changes: 1 addition & 1 deletion salt/cli/salt.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _run_batch(self):
try:
self.config["batch"] = self.options.batch
batch = salt.cli.batch.Batch(
self.config, eauth=eauth, parser=self.options
self.config, eauth=eauth, _parser=self.options
)
except SaltClientError:
# We will print errors to the console further down the stack
Expand Down
Loading

0 comments on commit ba3d2c2

Please sign in to comment.