Fixed NameError on result_dir when calling with --image-only

Signed-off-by: Brian C. Lane <bcl@redhat.com>
This commit is contained in:
Yuval Turgeman 2017-01-08 15:18:17 +02:00 committed by Brian C. Lane
parent ff5b931049
commit 46277f36db
1 changed files with 1 additions and 1 deletions

View File

@ -1395,8 +1395,8 @@ def main():
log.error("ERROR: Image creation failed: %s", e)
sys.exit(1)
result_dir = None
if not opts.image_only:
result_dir = None
if opts.make_iso:
work_dir = tempfile.mkdtemp(prefix="lmc-work-")
log.info("working dir is %s", work_dir)