Skip to content

Commit

Permalink
When creating temp space for 'profiles -C' output, provide a filename…
Browse files Browse the repository at this point in the history
… instead of a directory
  • Loading branch information
gregneagle committed Jan 27, 2015
1 parent d8c0609 commit 2a4bea0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/client/munkilib/profiles.py
Expand Up @@ -33,7 +33,8 @@ def config_profile_info(ignore_cache=False):
global CONFIG_PROFILE_INFO
if not ignore_cache and CONFIG_PROFILE_INFO is not None:
return CONFIG_PROFILE_INFO
output_plist = tempfile.mkdtemp(dir=munkicommon.tmpdir())
output_plist = os.path.join(
tempfile.mkdtemp(dir=munkicommon.tmpdir()), 'profiles')
cmd = ['/usr/bin/profiles', '-C', '-o', output_plist]
proc = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 2a4bea0

Please sign in to comment.