[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Teach driverdisk.py command to reject extra partitions
- From: Chris Lumens <clumens redhat com>
- To: kickstart-list redhat com
- Subject: Re: [PATCH] Teach driverdisk.py command to reject extra partitions
- Date: Tue, 3 Feb 2009 14:02:09 -0500
> pykickstart/commands/driverdisk.py | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/pykickstart/commands/driverdisk.py b/pykickstart/commands/driverdisk.py
> index 2423d93..656ec06 100644
> --- a/pykickstart/commands/driverdisk.py
> +++ b/pykickstart/commands/driverdisk.py
> @@ -74,6 +74,9 @@ class FC3_DriverDisk(KickstartCommand):
> def parse(self, args):
> (opts, extra) = self.op.parse_args(args=args)
>
> + if len(extra) > 1:
> + raise KickstartValueError, formatErrorMsg(self.lineno, msg=_("Only one partition may be specified for driverdisk command."))
> +
> if len(extra) == 1 and opts.source:
> raise KickstartValueError, formatErrorMsg(self.lineno, msg=_("Only one of --source and partition may be specified for driverdisk command."))
>
Applied. Thanks for the patch.
- Chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]