In this scenario, ``avail[pkg]`` contains an empty string, we want to
reinstall the current version with new USE flags so the
currently-installed version is what we need to add to the targets.
* Revert "Don't use six.text_type() in salt.utils.gitfs"
This reverts commit d76659a63a.
* salt.utils.path_join: handle mixed unicode/binary-unicode paths
* Add test for mixed unicode and binary-unicode paths
* salt.utils.gitfs: replace os.path.join with salt.utils.path_join
Top file merging does not work as described in the docs, this is being
corrected for the Carbon release. This commit fixes the docs so that
they A) are accurate for these older release branches, and B) refer to
the Carbon release as a point when top file merging was corrected.
These references to the Carbon release will need to be updated again
once we settle on a version number for Carbon.
Also load the __utils__ into pillar and fileserver and fileclient so
that this function can be used there with __opts__.
Also sets the default for s3 to 'us-east-1' like it is documented.
Closes#30976Closes#28913
For Python 2, Pygit2 (as well as others) store unicode strings as bytes
(e.g. ``'\xd0\x94'``), not as unicode strings. This can result in a
``UnicodeDecodeError`` being raised when ``os.path.join()`` is invoked
and Python attempts to decode the bytestring.
This commit fixes the issue by using ``str()`` to force config values to
be strings, rather than ``six.text_type()``.
Resolves#35630.
* Update docstring to reflect optional context argument
It used to not be optional.
* Update linux_sysctl tests to reflect new context key
This key was changed in 5b12f03, this updates the tests to reflect the
change.
* Add warning about AWS flagging of nmap usage
Also improve the verification examples overall, and add a note about the
fingerprint display difference beginning in OpenSSH 6.8.
* Remove "as root"
For some reason, when I was running the test in the example, I wasn't
getting the script output for the host key, unless I ran as root. Don't
know why this was the case but I can't reproduce it now. Removing this
as it is not accurate.
Also added a port number to the example as well since it speeds up the
nmap command.
* Clarify config.get docstring
This commit adds clarification that Salt's built-in config options
cannot be overriden by config.get.
* Remind user that pillar_opts must be turned on to traverse master opts
* s/by/be/
Salt enforces authorization not salt-api. Showing the user his/her
permissions is a nicety only. We should make a best effort to retrieve
them but if we cannot we should log the user in instead of blocking.