Commit Graph

100220 Commits

Author SHA1 Message Date
Daniel A. Wozniak
2d8a3641bc
Fix linter issues 2019-01-30 17:05:03 -05:00
Daniel A. Wozniak
9b8718a1d5
Cloud provider and profile configs are merged 2019-01-30 17:04:50 -05:00
Erik Johnson
c84be3fb4f
Allow for kwargs to be used in object initialization 2019-01-30 15:44:06 -06:00
Erik Johnson
2bf93fd9af
pip states: Use case-insensitive dictionaries for pip.list return 2019-01-30 15:44:06 -06:00
Erik Johnson
792f05403c
Add a CaseInsensitiveDict implementation 2019-01-30 15:21:38 -06:00
Erik Johnson
1410164ee9
pip.installed: Fix traceback when _find_key doesn't return a match 2019-01-30 15:16:50 -06:00
Daniel Wozniak
a16461b1ba
Merge pull request #51404 from aplanas/backport_49668
blockdev: fix url from comment
2019-01-30 13:05:53 -07:00
Daniel Wozniak
756c367c6b
Merge pull request #51407 from aplanas/backport_49803
parted: fix _validate_partition_boundary
2019-01-30 13:05:01 -07:00
Daniel Wozniak
a880e422ec
Merge pull request #51438 from twangboy/fix_raise_2018.3.4
Add missing raise statement
2019-01-30 13:04:04 -07:00
Daniel Wozniak
3637a80eeb
Merge pull request #51439 from twangboy/fix_raise_2019.2.0.rc1
Add missing raise statement
2019-01-30 13:03:53 -07:00
Daniel Wozniak
60953b723a
Merge pull request #51366 from dwoz/cloud_config_merge
Cloud provider and profile configs are merged [2018.3]
2019-01-30 11:58:45 -07:00
Daniel Wozniak
1d45664211
Merge pull request #51435 from damianosSemmle/fix-raise-exception
Fixed not raised exceptions
2019-01-30 11:32:56 -07:00
twangboy
5a24f40655
Add missing raise statement 2019-01-30 11:28:45 -07:00
twangboy
5830fad5b4
Add missing raise statement 2019-01-30 11:26:46 -07:00
Daniel Wozniak
28b898c54b
Merge pull request #51432 from Ch3LL/bp-51324
Backport #51324 into 2018.3.4
2019-01-30 10:51:49 -07:00
Daniel A. Wozniak
984df33551
Use newer upstream test-kitchen 2019-01-30 10:46:07 -07:00
damianos
7a9ff59309 Fixed not raised exceptions
Raised 11 exceptions `CommandExecutionError` in `salt/modules/panos.py` and 1 exception `SaltInvocationError` in `salt/modules/win_dsc.py` that were called but not raised.

I work for Semmle and I noticed the bug with out LGTM code analyzer
https://lgtm.com/projects/g/saltstack/salt/alerts/?mode=tree&severity=error&lang=python&ruleFocus=1505923886371
2019-01-30 16:06:07 +00:00
Gareth J. Greenaway
bd41ff0f59
Fixing various bits in x509 module and unit test to ensure tests are passing on python2 & python3 2019-01-30 11:01:06 -05:00
Alberto Planas
467daf2e4c parted: support variable length output for print
The command print from parted have a variable lenght output,
depending on the units requested, or the kind of partition.

This patch add the logic to support the full range of outputs
that parted 3.1, and early versions, are generating.

(cherry picked from commit 5adf859e3f)
2019-01-30 13:44:27 +01:00
Alberto Planas
66743d6502 mount: cache blkid information
During the mount of a device a call to blkid is done, to get
information of the current devices.

blkid is a slow operation, to avoid that use an internal cache,
that is specified in /etc/blkid configuration file, but a single
blkid can still redo this cache file, making the second call
equally slow.

This patch cache the blkid information for _active_mountinfo in
the __context__ dict, making the next mount action a fast
operation.

(cherry picked from commit c1ede1d97c)
2019-01-30 13:17:33 +01:00
Alberto Planas
9193106c50 cmdmod: add sysfs into the chroot
Some commands executed inside the chroot require access to the /sys
information. For example, /sys/firmware is used to get to information
from UEFI systems.

This patch mount a sysfs file system inside the chroot.

Also normalize the name for devtmpfs, replacing the old udev one.

(cherry picked from commit 2b5d45ac99)
2019-01-30 13:15:50 +01:00
Pedro Algarvio
b92713c851
Coverage on windows chokes with the tox env var COVERAGE_PROCESS_START 2019-01-30 11:49:20 +00:00
Pedro Algarvio
55878672ea
Switch required PyTest dependency 2019-01-30 11:49:17 +00:00
Pedro Algarvio
9ab2ec62f9
Coverage on windows chokes with the tox env var COVERAGE_PROCESS_START 2019-01-30 11:48:37 +00:00
Pedro Algarvio
4994c388de
Switch required PyTest dependency 2019-01-30 11:48:30 +00:00
Alberto Planas
ab8a8b84b1 file: update attributes for lsattr and chattr
(cherry picked from commit 1be76ec291)
2019-01-30 11:51:29 +01:00
Alberto Planas
b5cff17f77 service: SUSE is not based on sysvinit anymore
(cherry picked from commit dd1ec387bb)
2019-01-30 11:38:24 +01:00
Alberto Planas
d38622e7ed Fix lowpkg.diff documentation and parameter name
Package names are useless for lowpkg.diff, as to make a full
comparison we need to access the RPM

Fix #50097

(cherry picked from commit 5484791c0f)
2019-01-30 11:16:14 +01:00
Daniel A. Wozniak
ae351eb055
Fix python 3 path for shell test cases 2019-01-30 03:13:21 -07:00
Alberto Planas
da2e632566 parted: fix the ordering of list command
The command `parted -m -s {} print` do not print the "Type" column,
but after the "File System" column print the name of the partition.

This point that the type of the partition cannot be extracted using
parted with machine parseable output.

(cherry picked from commit f23d618e11)
2019-01-30 11:02:26 +01:00
Alberto Planas
b004b33444 parted: fix _validate_partition_boundary
The current partition boundary validator checks that one of the
valid units is a suffix of the boundary, and if so consider it
a valid one. This validation have two problems:

* We can miss the numerical part of the boundary

  e.g: 's' or 'MB' will be valid units

* The unit provided can be invalid

  e.g: '10as', '1okB'

The current validator make sure that there is a valid number
and a valid unit in the boundary.

(cherry picked from commit 9e5a0fe676)
2019-01-30 10:59:41 +01:00
Alberto Planas
da2e30dfce blockdev: fix url from comment
(cherry picked from commit 4a2fd4c615)
2019-01-30 10:41:16 +01:00
Daniel Wozniak
48062c89a7
Merge branch '2018.3' into cloud_config_merge 2019-01-29 19:43:26 -07:00
Daniel A. Wozniak
eeea289806
Add testing path to run_script commands 2019-01-29 19:38:46 -07:00
Daniel Wozniak
89710a7e37
Merge pull request #51401 from dwoz/run_script_win
Add testing path to run_script commands [2018.3]
2019-01-29 18:34:48 -07:00
Daniel A. Wozniak
77fdf35e3c
Add testing path to run_script commands 2019-01-29 17:26:04 -07:00
Pedro Algarvio
2e69d2b0a1
Merge pull request #51392 from waynew/py2-deprecation-warning
Move deprecation warning after logging starts up
2019-01-29 22:44:43 +00:00
Pedro Algarvio
1f4fa3e53a
Merge branch '2019.2.0.rc1' into py2-deprecation-warning 2019-01-29 22:44:33 +00:00
Daniel Wozniak
b97b384b4e
Merge pull request #51390 from s0undt3ch/hotfix/singleton-refs
Avoid tracebacks when GC has nuked all objects
2019-01-29 15:13:44 -07:00
Erik Johnson
1438a6299d
Merge pull request #51389 from terminalmage/proxy-fixes
Backport proxy fixes to 2018.3
2019-01-29 14:17:27 -06:00
Erik Johnson
3cec85e725
Normalize results if test proxy is enabled 2019-01-29 12:58:24 -06:00
Wayne Werner
0ed4326e94
Move deprecation warning after logging starts up
It was getting called in the other spot, it just wasn't actually
doing anything. Here it prints the message on the cli
2019-01-29 11:38:09 -06:00
Megan Wilhite
8acd9e5da2
Merge pull request #51368 from s0undt3ch/hotfix/tests
Fix test
2019-01-29 12:36:48 -05:00
Pedro Algarvio
01717d2455
Merge pull request #51377 from twangboy/fix_auditpol_2018.3.4
Fix issue when directory doesn't exist in LGPO module (2018.3.4)
2019-01-29 17:33:24 +00:00
Pedro Algarvio
f1136fe836
Avoid tracebacks when GC has nuked all objects
Fixes #51369
2019-01-29 16:50:04 +00:00
Megan Wilhite
da396ef38c
Merge pull request #51376 from twangboy/fix_auditpol
Fix issue when directory doesn't exist in LGPO module
2019-01-29 09:59:58 -05:00
Megan Wilhite
8f3822b8c9
Merge pull request #51365 from waynew/py2-deprecation-warning
Add Python2 depreciation warning
2019-01-29 09:58:56 -05:00
twangboy
19e518134d
Fix issue when directory doesn't exist 2019-01-28 21:25:33 -07:00
twangboy
501234cc24
Fix issue when directory doesn't exist 2019-01-28 21:23:14 -07:00
Pedro Algarvio
ab60782de4
Merge pull request #51319 from terminalmage/issue51255
git.latest: add auth to merge/reset calls when LFS used with SSH auth
2019-01-28 23:19:29 +00:00