[Freeipa-devel] [PATCH 0024] Add OTP support to ipalib CLI

Jan Cholasta jcholast at redhat.com
Wed Dec 18 08:16:27 UTC 2013


On 17.12.2013 14:54, Nathaniel McCallum wrote:
> On Tue, 2013-12-17 at 09:36 +0100, Jan Cholasta wrote:
>> ipalib/plugins/otptoken.py:230: [E0602(undefined-variable),
>> otptoken_add.pre_callback] Undefined variable 'owner')
>> ipalib/plugins/otptoken.py:232: [E0602(undefined-variable),
>> otptoken_add.pre_callback] Undefined variable 'owner')
>>
>> (just put a "owner = entry_attrs.get('ipatokenowner')" line somewhere in
>> there)
>
> Fixed, with: owner = entry_attrs.get('ipatokenowner', None)

That is not necessary, None is the default for the second argument of get.

ACK.

-- 
Jan Cholasta




More information about the Freeipa-devel mailing list