installer: Drop needless property redirection

This commit is contained in:
Cole Robinson 2014-01-11 15:28:21 -05:00
parent f055b07a61
commit 0c80c69918
2 changed files with 6 additions and 19 deletions

View File

@ -348,7 +348,7 @@ class DistroInstaller(Installer):
self._install_kernel = kernel
self._install_initrd = initrd
self._install_args = args
self.extraargs = args
###########################

View File

@ -56,13 +56,14 @@ class Installer(object):
def __init__(self, conn):
self.conn = conn
self._location = None
self._cdrom = False
self.cdrom = False
self.extraargs = None
self.initrd_injections = []
self._install_kernel = None
self._install_initrd = None
self._install_args = None
# Devices created/added during the prepare() stage
self.install_devices = []
@ -75,26 +76,12 @@ class Installer(object):
# Properties properties #
#########################
def get_cdrom(self):
return self._cdrom
def set_cdrom(self, enable):
if enable not in [True, False]:
raise ValueError(_("Guest.cdrom must be a boolean type"))
self._cdrom = enable
cdrom = property(get_cdrom, set_cdrom)
def get_location(self):
return self._location
def set_location(self, val):
self._location = self._validate_location(val)
location = property(get_location, set_location)
def get_extra_args(self):
return self._install_args
def set_extra_args(self, val):
self._install_args = val
extraargs = property(get_extra_args, set_extra_args)
###################
# Private helpers #
@ -150,8 +137,8 @@ class Installer(object):
bootconfig.kernel = self._install_kernel
if self._install_initrd:
bootconfig.initrd = self._install_initrd
if self._install_args:
bootconfig.kernel_args = self._install_args
if self.extraargs:
bootconfig.kernel_args = self.extraargs
##########################