mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add a missed with
This commit is contained in:
parent
47edf6fc89
commit
1eeb02d93f
@ -122,14 +122,13 @@ class CopyTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||||||
os.chdir(config_dir)
|
os.chdir(config_dir)
|
||||||
|
|
||||||
config_file_name = 'master'
|
config_file_name = 'master'
|
||||||
config = yaml.load(
|
with salt.utils.fopen(self.get_config_file_path(config_file_name), 'r') as fhr:
|
||||||
salt.utils.fopen(self.get_config_file_path(config_file_name), 'r').read()
|
config = yaml.load(fhr.read())
|
||||||
)
|
config['log_file'] = 'file:///dev/log/LOG_LOCAL3'
|
||||||
config['log_file'] = 'file:///dev/log/LOG_LOCAL3'
|
with salt.utils.fopen(os.path.join(config_dir, config_file_name), 'w') as fhw:
|
||||||
with salt.utils.fopen(os.path.join(config_dir, config_file_name), 'w') as fh_:
|
fhw.write(
|
||||||
fh_.write(
|
yaml.dump(config, default_flow_style=False)
|
||||||
yaml.dump(config, default_flow_style=False)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
ret = self.run_script(
|
ret = self.run_script(
|
||||||
self._call_binary_,
|
self._call_binary_,
|
||||||
|
Loading…
Reference in New Issue
Block a user