mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
85e22d2f25
commit
9b203d544d
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ def install_file(package, formula_tar, member, formula_def, conn=None):
|
|||
elif tag in ('s', 'm'):
|
||||
pass
|
||||
|
||||
if new_name.startswith('{0}/_'.format(package)):
|
||||
if member.name.startswith('{0}/_'.format(package)):
|
||||
if node_type in ('master', 'minion'):
|
||||
# Module files are distributed via extmods directory
|
||||
member.name = member.name.replace('{0}/_'.format(package), '')
|
||||
|
@ -141,7 +141,7 @@ def install_file(package, formula_tar, member, formula_def, conn=None):
|
|||
else:
|
||||
# Module files are distributed via _modules, _states, etc
|
||||
member.name = member.name.replace('{0}/'.format(package), '')
|
||||
elif new_name == '{0}/pillar.example'.format(package):
|
||||
elif member.name == '{0}/pillar.example'.format(package):
|
||||
# Pillars are automatically put in the pillar_path
|
||||
member.name = '{0}.sls.orig'.format(package)
|
||||
out_path = conn['pillar_path']
|
||||
|
|
Loading…
Add table
Reference in a new issue