summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2008-10-29 13:04:15 +0100
committerHans de Goede <hdegoede@redhat.com>2008-10-29 13:04:15 +0100
commit465e38c4d42ab1d9e8cf753b28b14b715268adc0 (patch)
tree2aa6640247b5c1d3a77f0118f27934d53402344d /kickstart.py
parent3eef673658452c5f420967e5562440838ad9367d (diff)
downloadanaconda-465e38c4d42ab1d9e8cf753b28b14b715268adc0.tar.gz
anaconda-465e38c4d42ab1d9e8cf753b28b14b715268adc0.tar.xz
anaconda-465e38c4d42ab1d9e8cf753b28b14b715268adc0.zip
Fix various syntax errors caught by PyChecker
Fix various syntax errors caught by PyChecker
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/kickstart.py b/kickstart.py
index e6b1f5978..af2e06348 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -36,6 +36,7 @@ import lvm
import warnings
import upgrade
import pykickstart.commands as commands
+import cryptodev
from pykickstart.constants import *
from pykickstart.errors import *
from pykickstart.parser import *
@@ -382,7 +383,7 @@ class LogVol(commands.logvol.F9_LogVol):
if lvd.encrypted:
if lvd.passphrase and \
not self.handler.anaconda.id.partitions.encryptionPassphrase:
- self.anaconda.id.partitions.encryptionPassphrase = lvd.passphrase
+ self.handler.anaconda.id.partitions.encryptionPassphrase = lvd.passphrase
request.encryption = cryptodev.LUKSDevice(passphrase=lvd.passphrase, format=lvd.format)
addPartRequest(self.handler.anaconda, request)
@@ -626,7 +627,7 @@ class Partition(commands.partition.F9_Partition):
if pd.encrypted:
if pd.passphrase and \
not self.handler.anaconda.id.partitions.encryptionPassphrase:
- self.anaconda.id.partitions.encryptionPassphrase = pd.passphrase
+ self.handler.anaconda.id.partitions.encryptionPassphrase = pd.passphrase
request.encryption = cryptodev.LUKSDevice(passphrase=pd.passphrase, format=pd.format)
addPartRequest(self.handler.anaconda, request)
@@ -709,7 +710,7 @@ class Raid(commands.raid.F9_Raid):
if rd.encrypted:
if rd.passphrase and \
not self.handler.anaconda.id.partitions.encryptionPassphrase:
- self.anaconda.id.partitions.encryptionPassphrase = rd.passphrase
+ self.handler.anaconda.id.partitions.encryptionPassphrase = rd.passphrase
request.encryption = cryptodev.LUKSDevice(passphrase=rd.passphrase, format=rd.format)
addPartRequest(self.handler.anaconda, request)