Commit Graph

51776 Commits

Author SHA1 Message Date
Gareth J. Greenaway
595bc284b7 Fixing a reported issue when using a scheduled job from pillar with splay. _seconds element that acted as a backup of the actual seconds was being removed when pillar was refreshed│··································
and causing exceptions.  This fix moves some splay related code out of the if else condition so it's checked whether the job is in the job queue or not.
2015-04-22 08:17:04 -07:00
Pedro Algarvio
bc87749e2c Test with a more recent pip version to avoid a traceback
```
07:39:05,449 [salt.minion                                :1178][ERROR   ] A command in 'pip.list' had a problem: Traceback (most recent call last):
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/bin/pip", line 9, in <module>
    load_entry_point('pip==1.3.1', 'console_scripts', 'pip')()
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pkg_resources/__init__.py", line 546, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2666, in load_entry_point
    return ep.load()
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2339, in load
    return self.resolve()
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2345, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/__init__.py", line 13, in <module>
    from pip.commands import commands, get_similar_commands, get_summaries
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/commands/__init__.py", line 6, in <module>
    from pip.commands.bundle import BundleCommand
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/commands/bundle.py", line 5, in <module>
    from pip.commands.install import InstallCommand
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/commands/install.py", line 5, in <module>
    from pip.req import InstallRequirement, RequirementSet, parse_requirements
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/req/__init__.py", line 3, in <module>
    from .req_install import InstallRequirement
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/req/req_install.py", line 20, in <module>
    import pip.wheel
  File "/tmp/salt-tests-tmpdir/6833-pip-upgrade-pip/lib/python2.6/site-packages/pip/wheel.py", line 23, in <module>
    from pip.exceptions import InvalidWheelFilename, UnsupportedWheel
ImportError: cannot import name InvalidWheelFilename
```
2015-04-22 16:13:58 +01:00
Gareth J. Greenaway
bfa6d25ed8 Fixing a reported issue when using a scheduled job from pillar with splay. _seconds element that acted as a backup of the actual seconds was being removed when pillar was refreshed and causing exceptions. This fix moves some splay related code out of the if else condition so it's checked whether the job is in the job queue or not. 2015-04-22 08:08:36 -07:00
Justin Findlay
2589e15e5c Merge pull request #22938 from jayeshka/powerpath-unit-test
adding powerpath unit test case
2015-04-22 08:51:39 -06:00
Justin Findlay
a70fa267b1 Merge pull request #22936 from jayeshka/boto_dynamodb-states-unit-test
adding states/boto_dynamodb unit test case
2015-04-22 08:49:52 -06:00
Justin Findlay
ce1a880025 Merge pull request #22935 from jayeshka/boto_cloudwatch_alarm-states-unit-test
adding states/boto_cloudwatch_alarm unit test case
2015-04-22 08:48:19 -06:00
Justin Findlay
3e31385318 Merge pull request #22934 from jayeshka/boto_asg-states-unit-test
adding states/boto_asg unit test case
2015-04-22 08:47:41 -06:00
Jayesh Kariya
5a5c7ef415 adding powerpath unit test case 2015-04-22 17:38:44 +05:30
Jayesh Kariya
650435ec44 adding states/boto_dynamodb unit test case 2015-04-22 16:17:29 +05:30
Jayesh Kariya
4e5a101647 adding states/boto_cloudwatch_alarm unit test case 2015-04-22 16:15:54 +05:30
Jayesh Kariya
f78374e34a adding states/boto_asg unit test case 2015-04-22 16:13:14 +05:30
Viet Hung Nguyen
b13db32fde add test for #18843 2015-04-22 16:21:23 +07:00
Viet Hung Nguyen
7fe7b089fd run user.chhome once to avoid any side-effect when run it twice 2015-04-22 13:39:09 +07:00
Viet Hung Nguyen
19de9954ee clarify the usage of home arg
it is not always the dir will be managed by salt
2015-04-22 12:46:15 +07:00
Viet Hung Nguyen
d6dc09af64 enhance doc, as usermod on ubuntu 12.04 will not CREATE home 2015-04-22 12:46:15 +07:00
Viet Hung Nguyen
0ce4d7feb6 refactor: force to use boolean 2015-04-22 12:46:15 +07:00
Viet Hung Nguyen
849d19edd7 log debug the creating dir process 2015-04-22 12:46:14 +07:00
Viet Hung Nguyen
c4e95b9f48 fix #18843: usermod won't create a dir if old home does not exist
usermod only MOVE old home to new path. So create home dir by salt.
2015-04-22 12:46:04 +07:00
Thomas Jackson
98af7c3f95 Cleanup jinja attribute access for loader
Refactor of #22723
2015-04-21 22:39:17 -07:00
Justin Findlay
775bee936a Merge pull request #22909 from virtua-network/fix_pkgin_parser
Fix compatibility with pkgin > 0.7
2015-04-21 22:48:43 -06:00
Justin Findlay
399399f89e localemod.gen_locale now always returns a boolean
Related to #22829, also fixes #21140.
2015-04-21 22:31:56 -06:00
Justin Findlay
ca27f0d0c0 fix pip module saltenv requirements handling
Fix a stack trace that happens if the requirements.txt file cannot be
found in the given saltenv.
2015-04-21 22:26:52 -06:00
Justin Findlay
a0e253df95 Merge pull request #22927 from jfindlay/merge_22922
[develop] lint fixes
2015-04-21 22:19:36 -06:00
Gideon Redelinghuys
c0e2f2d104 Have fileclient check if file exists on server before modifying file system on minion 2015-04-21 22:15:28 -06:00
Pedro Algarvio
f7e6f716e3 Make PEP-8 checker happier 2015-04-21 20:35:14 -06:00
Pedro Algarvio
b831d14bfc Properly indent comments 2015-04-21 20:35:14 -06:00
Pedro Algarvio
5f7ab3dc36 Another PEP-8 preciosity disabled 2015-04-21 20:35:14 -06:00
Pedro Algarvio
4617f03dda Make PEP-8 happier 2015-04-21 20:35:14 -06:00
Pedro Algarvio
23ad161531 Additionally ignore import-error 2015-04-21 20:35:14 -06:00
Pedro Algarvio
492c6513bb Fix W1504(unidiomatic-typecheck)
Using type() instead of isinstance() for a typecheck.
2015-04-21 20:35:14 -06:00
Dmitry Kuzmenko
8b6c7ee08b Flush returners queue before salt master shutdown 2015-04-22 05:33:08 +03:00
Justin Findlay
d34e7c0585 Merge pull request #22926 from rallytime/pylint-dev
Python 3 compat for salt/auth/pam.py
2015-04-21 20:30:45 -06:00
Justin Findlay
6890752dd3 Merge pull request #22925 from rallytime/bp-22895
Backport #22895 to 2014.7
2015-04-21 20:30:26 -06:00
Justin Findlay
4db13ee454 Merge pull request #22924 from rallytime/bp-22829
Backport #22829 to 2015.2
2015-04-21 20:29:56 -06:00
Justin Findlay
049276af44 Merge pull request #22921 from s0undt3ch/hotfix/lint-2015.2
Another PEP-8 preciosity disabled
2015-04-21 20:28:42 -06:00
Justin Findlay
53001566e0 Merge pull request #22882 from freimer/issue_22880
Fix for issue #22880, this should be **kwarg, not kwarg=None.
2015-04-21 20:28:03 -06:00
rallytime
f61abb0c37 Python 3 compat for salt/auth/pam.py 2015-04-21 19:24:55 -06:00
rallytime
3852d96213 Pylint fix 2015-04-21 19:19:08 -06:00
Alexandre Letourneau
90f7829ad3 Fixed pylint issues 2015-04-21 19:18:48 -06:00
Alexandre Letourneau
5ebf159554 Cleaned up pull request 2015-04-21 19:18:39 -06:00
Alexandre Letourneau
a08ac478f6 pam_tally counter was not reset to 0 after a succesfull login 2015-04-21 19:17:47 -06:00
Felix Dreissig
468d392074 Adjust tests to the new return value of modules.localemod.gen_locale() 2015-04-21 19:11:33 -06:00
Felix Dreissig
16136f49ec Always return a boolean in modules.localemod.gen_locale()
This makes the behavior consistent with set_locale() and the error case.
states.locale.present() already expects a boolean return value;
therefore, this will probably resolve saltstack/salt#21140.
2015-04-21 19:10:43 -06:00
Nicole Thomas
f870f75b46 Merge pull request #22920 from cachedout/dns_check_err
Better err handling for unresoveable master addr
2015-04-21 19:00:00 -06:00
Nicole Thomas
522d1d8468 Merge pull request #22917 from twangboy/upd_icon
Updated icon file for windows
2015-04-21 18:56:47 -06:00
Nicole Thomas
eca37ebc11 Merge pull request #22914 from cachedout/issue_22790
Call proper returner function in jobs.list_jobs
2015-04-21 18:49:01 -06:00
Nicole Thomas
44f3409b01 Merge pull request #22918 from JaseFace/git-pillar-provider-doc-note
Add a note to the git_pillar docs stating that GitPython is the only currently supported provider
2015-04-21 18:48:26 -06:00
Nicole Thomas
2793ad667b Merge pull request #22911 from rallytime/test_fixes
Fix some Python 2.6-related test failures on 2015.2
2015-04-21 18:44:37 -06:00
Pedro Algarvio
430c5cfdf7 Another PEP-8 preciosity disabled 2015-04-22 00:46:20 +01:00
Mike Place
bac22b1261 Better err handling for unresoveable master addr 2015-04-21 17:14:51 -06:00