[PATCH] Add support for the realm command

Stef Walter stefw at redhat.com
Tue Apr 30 17:26:16 UTC 2013


On 30.04.2013 16:47, Chris Lumens wrote:
>> +    def execute(self, *args):
>> +        if not self.discovered:
>> +            return
>> +        for arg in self.join_args:
>> +            if arg.startswith("--no-password") or arg.startswith("--one-time-password"):
>> +                pw_args = []
>> +                break
> 
> As long as these args don't take options (--no-password=, for instance),
> you can instead do:
> 
>     args = self.join_args
>     if "--no-password" in args or "--one-time-password" in args:

For the record, --one-time-password takes an argument and --no-password
doesn't.

Cheers,

Stef



More information about the anaconda-patches mailing list