Fix test_cp failure: forgot to add tgt to test when @with_tempfile is present

This commit is contained in:
rallytime 2018-04-04 11:43:03 -04:00
parent d0202cab72
commit a0fcd5c053
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -635,7 +635,7 @@ class CPModuleTest(ModuleCase):
os.unlink(tgt)
@with_tempfile
def test_get_file_from_env_in_url(self):
def test_get_file_from_env_in_url(self, tgt):
tgt = os.path.join(paths.TMP, 'cheese')
try:
self.run_function('cp.get_file', ['salt://cheese?saltenv=prod', tgt])