mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix the with
context
This commit is contained in:
parent
491d251f48
commit
47edf6fc89
1 changed files with 5 additions and 5 deletions
|
@ -273,11 +273,11 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
|
||||
with salt.utils.fopen(self.get_config_file_path('minion'), 'r') as fh_:
|
||||
minion_config = yaml.load(fh_.read())
|
||||
minion_config['log_file'] = 'file:///dev/log/LOG_LOCAL3'
|
||||
with salt.utils.fopen(os.path.join(config_dir, 'minion'), 'w') as fh_:
|
||||
fh_.write(
|
||||
yaml.dump(minion_config, default_flow_style=False)
|
||||
)
|
||||
minion_config['log_file'] = 'file:///dev/log/LOG_LOCAL3'
|
||||
with salt.utils.fopen(os.path.join(config_dir, 'minion'), 'w') as fh_:
|
||||
fh_.write(
|
||||
yaml.dump(minion_config, default_flow_style=False)
|
||||
)
|
||||
ret = self.run_script(
|
||||
'salt-call',
|
||||
'--config-dir {0} cmd.run "echo foo"'.format(
|
||||
|
|
Loading…
Add table
Reference in a new issue