Reactor uses LocalClient to send message but do not read events that
produces memory leak in EventPublisher: sent messages are collected
there in the IOStream class.
Otherwise we are not properly mocking this function call and the
tests fail when the `_conn3` function is called. (Any distro using
salt.utils.boto3 will fail here.)
We also need to protect the test class if the correct versions of
boto and moto are not installed on the test system.
* Change osmajorrelease back to str in test_useradd
* Change osmajorrelease back to str in test_userdel
* Change osmajorrelease back to str in test_members
* initial add of win_lgpo module
* initial add of win_lgpo module
* Add ability to set admx based policies
add documenation
lint cleanup
* lint fixes
* i before e except after c
* more spelling corrections
* attempts to correct w1699 lint
fixes for "get" policy when ADM names conflict
* py3 compatability fix
string continuation changes for better pep8 conformity
additional module functions for in-progress state module
* update function names to not shadow builtins
additional execution module updates to handle ADML quirks
add state module
* add additional documentation
remove cumulative_rights_assignments argument from set_user_policy
* correct module function documentation examples that used original virtual name of 'gpedit'
* lint fix in states file
* Fix#35342 Fix#34781 Unicode Support
Fix#35342
Issue: win_pkg: refresh_db doesn't remove cached items which have been
renamed or removed
Solution: Conservative solution was to just remove *.sls files from
\win\repo-ng tree as part of pkg.refresh_db instead of removing all
of \win\repo-ng\salt-winrepo-ng
Fix#34781
Issue: Logs did not contain enough information, and from executing it from the
master it was too difficult to determine if there was an issue due to the
output being data
Solution:
* pkg.genrepo now reports the status of the operation instead of the
large about of metadata. The status report indicates:
- Total SLS Files processed
- Number of failed sls files
- Number of successful sls files
- list of files with errors and the render/compile errors they had
- optionally a list of successfully render/compiled files and the
package names within those files
* pkg.refresh_db was also part of this issue, as it just reported a list
of files copied from the same large list of files would be reported almost
every time. As pkg.refresh_db calls pkg.genrepo after copy all the files
it now reports the same as data as pkg.genrepo.
Unicode Support
Issue: Windows Registry module supports Unicode in development, win_pkg
needed to be updated to support the Unicode output from reg.
* Lint space fixes
* More Lint fixes
* more lint fixes.
* refresh_db lint issues
* More lint fo win_pkg.py
* Notice list_pkgs did not call refresh_db with the current saltenv
* * Update states/pkg.py not to include in its name space an internal
function which has been removed
* With Windows we ignore issues with refresh_db existing behaviour,
update win_pkg.py to not report errors with refresh_db back
to states/pkg.py. As part of doing this created an internal version
if refresh_db called _refresh_db with different defaults
* Lint and Doco fixes win_pkg
* Remove trailing white space
* Remove a blank line
* Update the mongodb module with a new update_one() method (useful for ext_pillar based on mongodb)
* log informations errors
* update due to bracket pylint syntax issue and whitespaces