Replace `_` with `-`
Instead of taking the first 2 elements of the language code to find the
abbreviated language code, do a split off the `-` and take the first
element.
Use with io.open so the handle is realeased automatically....
Use `closed` to detect failure to release the file handle and continue
to close until successful
Use `__opts__` to get `cachedir` instead of __salt__
The _processPolicyDefinitions fuction loads the adml files for the
corresponding admx. The adml file usually resides in a sub folder in the
C:\Windows\PolicyDefinitions directory that is the language code. The
default is `en-US`.
When the System Center Operations Manager (SCOM) agent is installed, it
adds some addition policy definitions. However, the corresponding adml
files are not in the standard location (`en-US`). Instead they are placed
in the `en` directory.
This PR will cause the win_lgpo module to check in the `en-US` directory
first and then check the `en` directory if still not found.
This fix allow pass requests 'verify' option from vault configs
If vault certificate signed with Intermediate CA,
and Intermedia CA sign by internal root CA,
requests will fail verifying vault certificate with error:
_ssl.c:510: ... routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
'verify' option allow explicitly specify ca-bundle, or disable verifications.
http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification
A route is a rule that specifies how certain packets should be handled by the
virtual network. Routes are associated with virtual machine instances by tag,
and the set of routes for a particular VM is called its routing table.
For each packet leaving a virtual machine, the system searches that machine's
routing table for a single best matching route.
This module will create a route to send traffic destined to the Internet
through your gateway instance.
These were erroneously changed from `dockerng.{stopped,absent}` to
`docker.{stopped,absent}` using sed, when they should have been changed
to reflect the new name of this state module (like the
`docker_container.running` examples were).
The imports were scattered around quite a bit, which made it hard
to see where multiple uses of salt/utils/* imports were being pulled
in.
This PR just adjusts the ordering so it's easier to see what is included
already for the future. (This is particularly useful for catching misuses
of salt.utils.__init__.py functions.)