Commit Graph

84531 Commits

Author SHA1 Message Date
spenceation
e1f9dbb987 2017-08-10 10:23:53 -04:00
rallytime
b16249a8b0 Update clean_kwargs utils path to use moved function in "args" util 2017-08-10 10:14:02 -04:00
rallytime
25f971d30c Use clean_kwargs from salt.utils
There are two different ways in this file that we're looking for keys
that start with "__" and removing them from kwargs. Let's just use
salt.utils.clean_kwargs.
2017-08-10 10:12:24 -04:00
Nicole Thomas
d9b0f44885 Merge pull request #42807 from rallytime/fix-42639
Update modules --> states in kubernetes doc module
2017-08-10 10:10:39 -04:00
Nicole Thomas
e0ac5b65a4 Merge pull request #42831 from terminalmage/unicode
Fix minor issues with #42572
2017-08-10 10:01:17 -04:00
Erik Johnson
2a1adebad9 Merge pull request #42732 from michelsm/fix-file.absent-inconsistency
Set force=true when removing a windows directory
2017-08-10 08:54:24 -05:00
Nicole Thomas
b8c7bda68d Merge pull request #42841 from Mapel88/patch-1
Fix bug #42818 in win_iis module
2017-08-10 09:44:20 -04:00
Nicole Thomas
a62b08f0d4 Merge pull request #42835 from lyft/fix-typo-in-utils.versions
Fix typo in utils/versions.py module
2017-08-10 09:37:35 -04:00
spenceation
fe6070a554 Fixed LINT issues. 2017-08-10 09:35:56 -04:00
spenceation
8b6b53f8f0 Fixed EoL. 2017-08-10 08:46:51 -04:00
Mapel88
497241fbcb Fix bug #42818 in win_iis module
Exception in function "create_cert_binding".
function fails with the following exception:
2017-08-09 00:23:32,096 [salt.state ][ERROR ][2948] An exception occurred in this state: Traceback (most recent call last):
File "c:\salt\bin\lib\site-packages\salt\state.py", line 1837, in call
**cdata['kwargs'])
File "c:\salt\bin\lib\site-packages\salt\loader.py", line 1794, in wrapper
return f(*args, **kwargs)
File "c:\salt\var\cache\salt\minion\extmods\states\win_iisV2.py", line 326, in create_cert_binding
ipaddress, port, sslflags)
File "c:\salt\var\cache\salt\minion\extmods\modules\win_iisV2.py", line 861, in create_cert_binding
if binding_info not in new_cert_bindings(site):
TypeError: 'dict' object is not callable


**This is the problematic code:
new_cert_bindings = list_cert_bindings(site)
if binding_info not in new_cert_bindings(site):

Just need to remove (site) from second line as follows and it's fixed:
new_cert_bindings = list_cert_bindings(site)
if binding_info not in new_cert_bindings:**
2017-08-10 10:39:43 +03:00
Aneesh Agrawal
90aa4abf2e Fix typo in utils/versions.py module 2017-08-09 22:44:25 +00:00
garethgreenaway
98e26dbc8f Merge branch 'develop' into fix-42819 2017-08-09 15:38:16 -07:00
garethgreenaway
135f9522d0 Merge pull request #42782 from rallytime/fix-42697
Add a cmp compatibility function utility
2017-08-09 15:37:29 -07:00
garethgreenaway
4db7de8543 Merge branch 'develop' into panos/develop 2017-08-09 15:35:04 -07:00
Nicole Thomas
e6357abdda Merge pull request #42718 from moio/yumpkg-list_pkg-attr-parameter
yumpkg.list_pkgs: add parameter for returned attribute selection
2017-08-09 16:58:02 -04:00
Erik Johnson
59e19a9c15 Fix minor issues with #42572
See https://github.com/saltstack/salt/pull/42572#pullrequestreview-55270580
2017-08-09 15:55:52 -05:00
Nicole Thomas
333d86d96c Merge pull request #42572 from terminalmage/unicode
Use explicit unicode strings + break up salt.utils
2017-08-09 16:54:48 -04:00
spenceation
91026bba9c Update panos.py 2017-08-09 15:15:42 -04:00
spenceation
ac0ecf0d22 Update panos.py 2017-08-09 15:15:32 -04:00
spenceation
bd6aa2af4a Update panos.py 2017-08-09 15:15:08 -04:00
spenceation
530fb69daa Update panos.py 2017-08-09 15:14:59 -04:00
spenceation
1423ae18c7 Update panos.py 2017-08-09 15:14:27 -04:00
spenceation
bed46a6496 Update panos.py 2017-08-09 15:14:06 -04:00
spenceation
d211c3b84a Update panos.py 2017-08-09 15:13:38 -04:00
spenceation
335bcf8dd2 Update panos.py 2017-08-09 15:13:27 -04:00
spenceation
300b5c09b3 Update panos.py 2017-08-09 13:58:09 -04:00
spenceation
d08e44c558 Update panos.py 2017-08-09 13:56:15 -04:00
spenceation
406c69da54 Update panos.py 2017-08-09 13:55:51 -04:00
Melissa Michels
cfd1b960d3 Merge branch 'develop' into fix-file.absent-inconsistency 2017-08-09 13:30:19 -04:00
Melissa Michels
7e99ea4838 Fixed spacing 2017-08-09 13:27:02 -04:00
spenceation
269ee9f464 Add files via upload
New Palo Alto state file.
2017-08-09 12:59:01 -04:00
spenceation
bd42413b3f Add files via upload
New Palo Alto module
2017-08-09 12:58:32 -04:00
spenceation
997ddf2fb3 Add files via upload
New Palo Alto proxy module.
2017-08-09 12:57:43 -04:00
spenceation
060b6c4866 Add files via upload 2017-08-09 12:57:01 -04:00
spenceation
7ca5aa5b57 Add files via upload
New Palo Alto grain module.
2017-08-09 12:56:02 -04:00
rallytime
56b53c95e3 Fix build_type and release variables for develop branch
The changes to 2017.7 were merged forward accidentally, in a section
that should have it's own settings. This restores the setting variables
for the develop branch.
2017-08-09 11:52:15 -04:00
Silvio Moioli
5a15e53886 yumpkg.list_pkg: add/adapt tests
This includes changes to the zypper tests because of the refactoring that
affected both modules.
2017-08-09 11:43:56 +02:00
Silvio Moioli
b7b68b714c yumpkg.list_pkg: add attr option to pkg.install 2017-08-09 11:43:56 +02:00
Aneesh Agrawal
cd54ff642a Upstream support for deleting IAM user/group inline policies 2017-08-08 22:47:39 +00:00
Erik Johnson
c69f17dd18 Add integration test for #42774 2017-08-08 14:20:42 -05:00
Erik Johnson
78d826dd14 Fix regression in yum/dnf version specification
Resolves #42774.
2017-08-08 13:55:35 -05:00
rallytime
152eb88d9f Update modules --> states in kubernetes doc module
The kubernetes state docs are not rendering/building due to a typo
in the doc module.

Fixes #42639
2017-08-08 14:42:34 -04:00
Erik Johnson
394a33fbb0 Update txt outputter to properly handle unicode strings
Using pprint.pformat will show the `u` prefix in the output
2017-08-08 13:33:43 -05:00
Erik Johnson
3184168365 Use explicit unicode strings + break up salt.utils
This PR is part of what will be an ongoing effort to use explicit
unicode strings in Salt. Because Python 3 does not suport Python 2's raw
unicode string syntax (i.e. `ur'\d+'`), we must use
`salt.utils.locales.sdecode()` to ensure that the raw string is unicode.
However, because of how `salt/utils/__init__.py` has evolved into the
hulking monstrosity it is today, this means importing a large module in
places where it is not needed, which could negatively impact
performance. For this reason, this PR also breaks out some of the
functions from `salt/utils/__init__.py` into new/existing modules under
`salt/utils/`. The long term goal will be that the modules within this
directory do not depend on importing `salt.utils`.

A summary of the changes in this PR is as follows:

* Moves the following functions from `salt.utils` to new locations
  (including a deprecation warning if invoked from `salt.utils`):
  `to_bytes`, `to_str`, `to_unicode`, `str_to_num`, `is_quoted`,
  `dequote`, `is_hex`, `is_bin_str`, `rand_string`,
  `contains_whitespace`, `clean_kwargs`, `invalid_kwargs`, `which`,
  `which_bin`, `path_join`, `shlex_split`, `rand_str`, `is_windows`,
  `is_proxy`, `is_linux`, `is_darwin`, `is_sunos`, `is_smartos`,
  `is_smartos_globalzone`, `is_smartos_zone`, `is_freebsd`, `is_netbsd`,
  `is_openbsd`, `is_aix`
* Moves the functions already deprecated by @rallytime to the bottom of
  `salt/utils/__init__.py` for better organization, so we can keep the
  deprecated ones separate from the ones yet to be deprecated as we
  continue to break up `salt.utils`
* Updates `salt/*.py` and all files under `salt/client/` to use explicit
  unicode string literals.
* Gets rid of implicit imports of `salt.utils` (e.g. `from salt.utils
  import foo` becomes `import salt.utils.foo as foo`).
* Renames the `test.rand_str` function to `test.random_hash` to more
  accurately reflect what it does
* Modifies `salt.utils.stringutils.random()` (née `salt.utils.rand_string()`)
  such that it returns a string matching the passed size. Previously
  this function would get `size` bytes from `os.urandom()`,
  base64-encode it, and return the result, which would in most cases not
  be equal to the passed size.
2017-08-08 13:33:43 -05:00
Nicole Thomas
22901bcdec Merge branch 'develop' into nacl_with_sealedbox 2017-08-08 13:44:06 -04:00
Nicole Thomas
c87f2d8b1c Spelling fix 2017-08-08 13:39:59 -04:00
Nicole Thomas
c000a2e027 Merge pull request #42552 from remijouannet/consul_fix
update consul module following this documentation https://www.consul.…
2017-08-08 13:36:11 -04:00
Nicole Thomas
ac752223ad Merge pull request #42784 from gtmanfred/http
only read file if ret is not a string in http.query
2017-08-08 13:20:12 -04:00
Nicole Thomas
c4104531f4 Merge pull request #42746 from amendlik/flat-roster-sdb
Resolve SDB in flat roster
2017-08-08 13:19:04 -04:00