mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47228 from pruiz/pruiz/zfs-dataset-present-slow-2018.3
Fix issue #47225: avoid zfs.filesystem_present slowdown when dataset has lots of snapshots (2018.3 branch)
This commit is contained in:
commit
428e915d6a
1 changed files with 2 additions and 1 deletions
|
@ -454,8 +454,9 @@ def _dataset_present(dataset_type, name, volume_size=None, sparse=False, create_
|
|||
## NOTE: fetch current volume properties
|
||||
properties_current = __salt__['zfs.get'](
|
||||
name,
|
||||
type=dataset_type,
|
||||
fields='value',
|
||||
depth=1,
|
||||
depth=0,
|
||||
parsable=True,
|
||||
).get(name, OrderedDict())
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue