Commit Graph

61994 Commits

Author SHA1 Message Date
Justin Findlay
90aee79c39 states.service.mod_watch: update unit test 2016-06-06 10:54:16 -06:00
Justin Findlay
d210a92f09 states.service.mod_watch: update sfun and force docs 2016-06-06 10:13:06 -06:00
Mike Place
7fdfbe9a28 Merge pull request #33691 from jtand/gem_integration_test
Gem integration test
2016-06-06 04:13:23 -07:00
Mike Place
bb4194bb79 Merge pull request #33777 from sodium-chloride/2015.8-2016-0604-1939
Fix minor docstring issue of arg being missing
2016-06-06 03:44:59 -07:00
Jεan Sacren
c1fd830a1a Fix minor docstring issue of arg being missing
The network.get_bufsize function requires an interface for arg. In the
example that part is missing. Add arbitrary 'eth0' for clarity.
2016-06-04 19:44:31 -06:00
Mike Place
c749aea409 Merge pull request #33759 from cachedout/issue_31219
Catch no minions exception in batch mode
2016-06-03 14:22:49 -07:00
Mike Place
15a39f8646 Catch no minions exception in batch mode
Closes #31219
2016-06-03 14:22:11 -06:00
Mike Place
47d668e071 Merge pull request #33719 from cachedout/fixup_33653
Catch oserror for race condition
2016-06-03 10:25:26 -07:00
Mike Place
11e39e7203 Merge pull request #33712 from meaksh/fix-for-groupadd-module-failures-in-SLE11-2015.8
Fix for groupadd execution module failures in SLES11 systems
2016-06-03 09:13:06 -07:00
Mike Place
2c450a7494 Merge pull request #33718 from rallytime/bp-33700
Back-port #33700 to 2015.8
2016-06-03 09:10:44 -07:00
Mike Place
b07701f0a0 Merge pull request #33727 from terminalmage/issue33725
Fix git_pillar edge case for remote repos without a master branch
2016-06-03 09:03:59 -07:00
Mike Place
015e50cec8 Merge pull request #33728 from jfindlay/test_state_test
Make `configurable_test_state` configurable in test mode
2016-06-03 09:02:57 -07:00
Mike Place
1cf8fe3f1d Merge pull request #33729 from twangboy/fix_win_servermanager
Add exclude option to win_servermanager
2016-06-03 08:53:13 -07:00
Mike Place
6c150d840d Merge pull request #33743 from vutny/drop-debian-community-repo-doc
Debian installation docs: drop section about community-maintained repo
2016-06-03 08:29:45 -07:00
Justin Anderson
ff2dae103d ubuntu doesn't install default gems when ruby is installed 2016-06-03 08:54:51 -06:00
Pablo Suárez Hernández
ab738416ba pylint fix 2016-06-03 13:57:13 +01:00
Pablo Suárez Hernández
bf27e5d36e test_members cleanup 2016-06-03 13:25:05 +01:00
Pablo Suárez Hernández
ba815dbf76 improvements on groupadd unit tests 2016-06-03 13:17:13 +01:00
Justin
504df9a65a Fixed lint error 2016-06-03 04:28:42 -06:00
Pablo Suárez Hernández
3bbc5ae0d9 one line is better 2016-06-03 10:08:32 +01:00
Justin Findlay
87e018af2a states.test.configurable_test_state: add unit tests 2016-06-02 17:20:36 -06:00
twangboy
2de91d166f Fix docstring 2016-06-02 16:41:13 -06:00
Justin Anderson
0cb1bfa0d3 Removed extra : 2016-06-02 16:35:40 -06:00
Erik Johnson
d8ba7ed5a5 Fix git_pillar edge case for remote repos without a master branch
When the remote repository does not have a master branch, on the initial
checkout there will be no ref in refs/remotes/origin for this branch,
leading to an error being logged and the checkout failing.

Instead of failing the checkout, in these cases we'll create the initial
local HEAD based on the ref we will eventually check out, since we know
for a fact that this ref exists.

Resolves #33725
2016-06-02 17:33:07 -05:00
twangboy
9870479d99 Add exclude option to state 2016-06-02 16:04:19 -06:00
twangboy
50bd76e206 Add exclude option 2016-06-02 15:49:56 -06:00
Justin Findlay
c2d0679c4b states.test.configurable_test_state: refactor change_data
Also adjust continued string indentation.
2016-06-02 15:23:32 -06:00
Justin Findlay
f06ff1af1f states.test.configurable_test_state test mode
Make `configurable_test_state` configurable even in test mode and return
the correct result in test mode as per
https://docs.saltstack.com/en/latest/ref/states/writing.html#return-data.
2016-06-02 15:01:19 -06:00
Justin Anderson
86f59b3e80 Made more pythonic 2016-06-02 14:37:05 -06:00
Mike Place
635efa248b Change to just surround the mkdir 2016-06-02 14:36:56 -06:00
Justin Anderson
2f36f34981 Fixed salt.util import. Added status check to make sure external resource is available 2016-06-02 14:32:08 -06:00
Mike Place
21b7123a60 Catch oserror for race condition
fixup #33653
2016-06-02 14:27:05 -06:00
Mike Place
56c0a42e12 Create missing jid dir if it doesn't exist (#33653)
Closes #33554
2016-06-02 16:20:33 -04:00
Jεan Sacren
a6a446121a Fix speed issue
Erik Johnson pointed out the speed issue with compelling numbers:

>>> import timeit
>>> t1 = timeit.Timer('clock == "localtime"', 'clock = "localtime"')
>>> t2 = timeit.Timer('clock.__eq__("localtime")', 'clock = "localtime"')
>>> t1.repeat()
[0.061421871185302734, 0.0285952091217041, 0.026736021041870117]
>>> t2.repeat()
[0.1310901641845703, 0.09536910057067871, 0.09479284286499023]

I'll absolutely fix it by using the simple '==' operator.

Thank you!
2016-06-02 16:10:35 -04:00
Jεan Sacren
a41146730a Fix incorrect args passed to timezone.set_hwclock
On Gentoo, we should check the value passed in to timezone.set_hwclock
and only allow 'UTC' or 'localtime' for argument. If incorrect value is
passed in, it could subsequently fry the important config file.

There is another closely related issue on Gentoo. The value to set
'clock' variable in the config file is either 'UTC' or 'local'. In case
of localtime arg, we should convert the value of 'localtime' to 'local'
when setting that 'clock' variable.
2016-06-02 16:10:29 -04:00
Mike Place
8a566ff4b9 Merge pull request #33654 from twangboy/fix_win_servermanager
Fix win servermanager
2016-06-02 10:55:45 -07:00
Mike Place
996ff56dd4 Merge pull request #33679 from terminalmage/issue33424
Only compile the template contents if they evaluate to True
2016-06-02 10:20:00 -07:00
Justin Anderson
400a71ec33 Removed redundancies 2016-06-02 11:16:23 -06:00
Justin Anderson
91db411bea A couple lint fixes 2016-06-02 09:03:10 -06:00
Justin Anderson
c97f3319b9 Add check for gem binary 2016-06-02 08:56:09 -06:00
Denys Havrysh
8621f5be54 Debian installation docs: drop section about community-maintained repository 2016-06-02 17:50:47 +03:00
Pablo Suárez Hernández
a53dc192c9 fix groupadd module for sles11 systems 2016-06-02 15:22:54 +01:00
twangboy
6c7b21676a Fix lint and tests 2016-06-01 17:10:55 -06:00
twangboy
4775e6bdf0 Add additional params to state 2016-06-01 17:10:55 -06:00
twangboy
b0af32346d Add additional params to install and remove 2016-06-01 17:10:55 -06:00
Justin Anderson
210aceb402 Refactored tests to not use return messages 2016-06-01 16:57:37 -06:00
Erik Johnson
9da40c4437 Append empty dictionaries for saltenvs with no top file
Rather than excluding them from the get_tops() return data at all, just
populate them with empty dictionaries. This makes it easier to unit test
things like merge order, while still being functionally the same as
exlcluding the saltenv from get_tops() altogether.
2016-06-01 17:31:29 -05:00
Mike Place
c8dc70b96a Merge pull request #33685 from jfindlay/get_url_test
modules.cp.get_url: add test for https://
2016-06-01 15:25:41 -07:00
Mike Place
5e022ff29c Merge pull request #33581 from dincamihai/2015.8
Call zypper refresh after adding/modifying a repository
2016-06-01 15:25:11 -07:00
Justin Anderson
9d437bd45d Removed artifact from testing 2016-06-01 15:32:41 -06:00