[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



On 12/18/2013 09:16 AM, Jan Cholasta wrote:
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.

Pushed to master: 397b2876e2f9bf1c5b3ad3e2874a92715ccda599


--
PetrĀ³


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]