* Zeromq transport python3
* lets toss this fix in here, so that we get exception messages
* got states working
This forces the serializer to deserialize into strings on py3
but also allows for the argument 'raw' to be passed in allowing
for raw bytes to be sent explicitly. I made it this way
because the majority of calls are operational and the fileclient
is the only thing that needs bytes from the master
* all channels need to absorb the new raw arg
* Soem redundancy cleanup
* fix up base class
* try some more...
* Fix for "TypeError: send() got an unexpected keyword argument 'raw'"
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
* fix an issue where we are making unicode strings bytes for no good reason
* Remove FileClient class references from docs - it doesn't exist.
Replace FileClient class references with mentions of the fileclient.py
module and replace code examples with salt.fileclient.get_file_client
examples.
Fixes#32646
* Don't reference minion import when not used
Because of the way the renderers are lazy loaded when using ext_pillar_first
and gitfs external pillar, the renderers for the local pillar object were
being set to the last loaded gitfs pillar.
This was causing the local pillar to fail to render. This small fix
forces a reload of the renderers after all the external pillars are done
loading.
* Add support for stop_signal, fixes#32858
This adds support for already existing functionality in docker-py.
Running systemd requires the signal SIGRTMIN+3 to shutdown properly,
this fix makes it possible to specify the signal.
* Adds documentation for stop_signal
* Changed stop_signal in CREATE_OPTS
Removed min_docker_py until that functionality has been fixed.
Added a 'versionadded' tag for stop_signal.
* Tried pleasing pylint...
* Clarify service state opening docs - uses 'service' virtualname
Fixes#30855
* Add a few more clarifications to service state docs
And link to service execution modules list.
* Revert "Archive extracted perms update. (#32765)"
This reverts commit 66ba35261c.
* archive.extracted: only manage user/group ownership when if_missing is a directory
There might be a better way to properly enforce this this (such as using
os.chmod on each individual file), but the trouble with doing this right
now is that the archive functions for unzip and unrar do not return neat
lists of files, they just return the CLI output from the unzip/unrar
commands as a list of lines.
Fixes#32801.
* reg.py
* Start at PY3 support, however not tested against PY3
* Change to Unicode including from __future__ import unicode_literals
* If PY2 converts all parameter input unicode to local encoding i.e. Unicode to String
* If PY3 stays as Unicode as PY3 uses Windows Wide Char
* Supports non-asiic characters i.e. > 126
* All output is Unicode, before most of it was Unicode output
* Added a safty check to recursive delete to try and prevent a mistake like removing all of SOFTWARE
* Fixed all the pylint errors
* add _ prefix to internal functions
* Provided unit test see reg_win_test.py
reg_win_test.py
* All tests currently make real changes to the registry
* All changes are performed under SOFTWARE\SaltStackTest under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER
* Their is still room for more tests to be developed
* Test target the new Unicode features of reg.py e.g. Copyright, Tradmark and Register characters
* General the values set in the registy contain date/time and then checked that they are the current date/time to make sure they are not left over from old tests
* Update test unit to only run the tests on windows.
Removed some code which was commented out which is not required
* chmod 644 tests/unit/modules/reg_win_test.py
* Evaluate %h and %u before deciding if the ssh config path is absolute
Since %h is the user's home directory, it's not very useful unless it
appears at the beginning of the path. However, putting it at the
beginning of the path does not have the expected effect: %h/.ssh
will become /home/someuser/home/someuser/.ssh, since "%h/.ssh" is
identified by Python as a non-absolute path, causing the user's
home directory to be tacked on the front.
* Improved ssh_auth path expansion test