Skip to content

Commit

Permalink
Remove get_modules().
Browse files Browse the repository at this point in the history
This kickstart command has been deprecated for a long time anyway and it
has been removed in pykickstart 3.9.
  • Loading branch information
dcantrell authored and Conan-Kudo committed Jan 18, 2018
1 parent edf2ca0 commit 491a49f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions imgcreate/kickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,21 +533,6 @@ def get_image_fstype(ks, default = None):
return p.fstype
return default

def get_modules(ks):
devices = []
if not hasattr(ks.handler.device, "deviceList"):
devices.append(ks.handler.device)
else:
devices.extend(ks.handler.device.deviceList)

modules = []
for device in devices:
if not device.moduleName:
continue
modules.extend(device.moduleName.split(":"))

return modules

def get_timeout(ks, default = None):
if not hasattr(ks.handler.bootloader, "timeout"):
return default
Expand Down
1 change: 0 additions & 1 deletion imgcreate/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def __init__(self, ks, name, fslabel=None, releasever=None, tmpdir="/tmp",
"=mmc", "=pcmcia", "mptsas", "udf", "virtio_blk",
"virtio_pci", "virtio_scsi", "virtio_net", "virtio_mmio",
"virtio_balloon", "virtio-rng"]
self.__modules.extend(kickstart.get_modules(self.ks))

self._isofstype = "iso9660"
self.base_on = False
Expand Down

0 comments on commit 491a49f

Please sign in to comment.