From 99022bda48583e054e3668fae2f6347cc439657d Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Wed, 6 Feb 2019 09:31:59 +0100 Subject: [PATCH] keep variant setting removed by previous commit to avoid error like: === $~/createhdds/createhdds.py support ... Traceback (most recent call last): File "/root/createhdds/createhdds.py", line 821, in main() File "/root/createhdds/createhdds.py", line 811, in main args.func(args, hdds) File "/root/createhdds/createhdds.py", line 701, in cli_image img.create(args.textinst) File "/root/createhdds/createhdds.py", line 291, in create loctmp.format(fedoradir, str(self.release), variant, arch), "--name", "createhdds", NameError: name 'variant' is not defined === Signed-off-by: Michel Normand --- createhdds.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/createhdds.py b/createhdds.py index f1dc7af..c72cb0f 100755 --- a/createhdds.py +++ b/createhdds.py @@ -269,6 +269,8 @@ class VirtInstallImage(object): # from F26 onwards, i686 is in fedora-secondary fedoradir = 'fedora-secondary' + variant = self.variant + try: # this is almost complex enough to need fedfind but not # quite, I think. also fedfind can't find the 'transient'