--- pykickstart/commands/autostep.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pykickstart/commands/autostep.py b/pykickstart/commands/autostep.py index 8ad7604..44d2023 100644 --- a/pykickstart/commands/autostep.py +++ b/pykickstart/commands/autostep.py @@ -28,15 +28,17 @@ class FC3_AutoStep(KickstartCommand): KickstartCommand.__init__(self, writePriority, *args, **kwargs) self.op = self._getParser() + self.autostep = kwargs.get("autostep", False) self.autoscreenshot = kwargs.get("autoscreenshot", False) def __str__(self): retval = KickstartCommand.__str__(self) - if self.autoscreenshot: - retval += "autostep --autoscreenshot\n" - else: - retval += "autostep\n" + if self.autostep: + if self.autoscreenshot: + retval += "autostep --autoscreenshot\n" + else: + retval += "autostep\n" return retval @@ -49,4 +51,5 @@ class FC3_AutoStep(KickstartCommand): def parse(self, args): (opts, extra) = self.op.parse_args(args=args) self._setToSelf(self.op, opts) + self.autostep = True return self -- 1.6.0.6 _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list