On 30.04.2013 16:47, Chris Lumens wrote:
- def execute(self, *args):
if not self.discovered:returnfor arg in self.join_args:if arg.startswith("--no-password") or arg.startswith("--one-time-password"):pw_args = []breakAs 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