Merge pull request #54571 from garethgreenaway/2019_2_1_port_54154

[master] Porting #54154 to master
This commit is contained in:
Daniel Wozniak 2019-11-12 10:05:43 -07:00 committed by GitHub
commit 09655f9e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ class CPModuleTest(ModuleCase):
file_contents = 'Hello world!'
for dirname in (nginx_root_dir, nginx_conf_dir):
os.mkdir(dirname)
os.makedirs(dirname)
# Write the temp file
with salt.utils.files.fopen(os.path.join(nginx_root_dir, 'actual_file'), 'w') as fp_: