mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30154 from Oro/fix-file-serialize-windows
Fix file serialize on windows
This commit is contained in:
commit
bed38d1a65
1 changed files with 8 additions and 0 deletions
|
@ -4243,6 +4243,14 @@ def serialize(name,
|
|||
return _error(
|
||||
ret, 'Neither \'dataset\' nor \'dataset_pillar\' was defined')
|
||||
|
||||
if salt.utils.is_windows():
|
||||
if group is not None:
|
||||
log.warning(
|
||||
'The group argument for {0} has been ignored as this '
|
||||
'is a Windows system.'.format(name)
|
||||
)
|
||||
group = user
|
||||
|
||||
if merge_if_exists:
|
||||
if os.path.isfile(name):
|
||||
if formatter == 'yaml':
|
||||
|
|
Loading…
Add table
Reference in a new issue