Don't use stringToVersion from pykickstart.
First off, it's in the version module, not in the parser. Second, it's not necessary since makeVersion will take either a string or a constant as an argument. Patch by Chris Lumens <clumens@redhat.com> Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
ffcf1a30eb
commit
b968701b85
1 changed files with 2 additions and 3 deletions
|
|
@ -2446,7 +2446,7 @@ class ImageTask(BaseTaskHandler):
|
|||
# may not be a problem if the included kickstarts are present
|
||||
# in the repository we checked out.
|
||||
if opts.get('ksversion'):
|
||||
version = ksparser.version.makeVersion(ksparser.stringToVersion(opts['ksversion']))
|
||||
version = ksparser.version.makeVersion(opts['ksversion'])
|
||||
else:
|
||||
version = ksparser.version.makeVersion()
|
||||
self.ks = ksparser.KickstartParser(version)
|
||||
|
|
@ -2827,8 +2827,7 @@ class OzImageTask(BaseTaskHandler):
|
|||
# macros, Oz will fail because it can only handle flat files.
|
||||
# We require users to flatten their kickstart file.
|
||||
if self.opts.get('ksversion'):
|
||||
version = ksparser.version.makeVersion(
|
||||
ksparser.stringToVersion(self.opts['ksversion']))
|
||||
version = ksparser.version.makeVersion(self.opts['ksversion'])
|
||||
else:
|
||||
version = ksparser.version.makeVersion()
|
||||
ks = ksparser.KickstartParser(version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue