You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the argument is not defined there. This leads to the error:
my-minion:
----------
ID: group_delete_test
Function: group.absent
Name: groupname
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/salt/state.py", line 2428, in call
ret = self.states[cdata["full"]](
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 160, in __call__
ret = self.loader.run(run_func, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1269, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1284, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1317, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/salt/states/group.py", line 347, in absent
ret["result"] = __salt__["group.delete"](name, **del_args)
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 160, in __call__
ret = self.loader.run(run_func, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1269, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/salt/loader/lazy.py", line 1284, in _run_as
return _func_or_method(*args, **kwargs)
TypeError: delete() got an unexpected keyword argument 'local'
Started: 11:38:16.462864
Duration: 16.677 ms
Changes:
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3007.1Python Version:
Python: 3.9.21 (main, Jan 2 2025, 07:29:25)Dependency Versions:
cffi: 1.17.1cherrypy: unknowndateutil: 2.9.0docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.4libgit2: Not Installedlooseversion: 1.3.0M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.1.0msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 24.2pycparser: 2.22pycrypto: 3.21.0pycryptodome: 3.21.0pygit2: Not Installedpython-gnupg: 0.5.1PyYAML: 6.0.1PyZMQ: 25.1.2relenv: Not Installedsmmap: Not Installedtimelib: 0.3.0Tornado: 6.4ZMQ: 4.3.5Salt Package Information:
Package Type: Not InstalledSystem Versions:
dist: freebsd 13.4locale: utf-8machine: amd64release: 13.4-RELEASE-p2system: FreeBSDversion: FreeBSD 13.4
The text was updated successfully, but these errors were encountered:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Vringe
changed the title
[BUG]
[BUG] Deleting Users and Groups under FreeBSD broken since 3007
Feb 14, 2025
Description
Deleting users and groups via
user.absent
/group.absent
is not working anymore under FreeBSD with Salt 3007.Setup
I'm running FreeBSD 13.4 with Salt 3007.1.
Since 3007, there was added a new
local
argument to the absent methods:salt/salt/states/group.py
Lines 312 to 325 in 029b96c
This argument is then passed to the pw_groups Module's
delete()
method:salt/salt/modules/pw_group.py
Line 74 in 029b96c
But the argument is not defined there. This leads to the error:
Steps to Reproduce the behavior
Expected behavior
Add
local
argument handlingVersions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: