diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 889d6601..2004e2ea 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -113,7 +113,7 @@ def writeYumConf(cachedir=None, repo=None, extrarepos=[], mirrorlist=[]): if cachedir is None or repo is None: return None - tmpdir = tempfile.gettempdir() + tmpdir = conf['tmpdir'] (fd, yumconf) = tempfile.mkstemp(prefix='yum.conf', dir=tmpdir) f = os.fdopen(fd, 'w')