[Freeipa-devel] [PATCH] 0194 Fix selector of protocol for LSA RPC binding string

Tomas Babej tbabej at redhat.com
Thu Aug 6 08:37:31 UTC 2015



On 08/05/2015 08:40 PM, Alexander Bokovoy wrote:
> Hi,
> 
> attached patch fixes a bug
> https://bugzilla.redhat.com/show_bug.cgi?id=1249455
> 
> details are in the commit message.
> 
> 
> 

Looks good to me, generates bindings strings as described in the BZ.

Just a readability nitpick, can we get rid of the binding_template
lambda abstraction and use something like this?

    binding_template=u'%s:%s[%s]'
    return [binding_template % (t, remote_host, o) for t in transports
for o in options]

or just plain:

    return [u'%s:%s[%s]' % (t, remote_host, o) for t in transports for o
in options]

instead of:

    binding_template=lambda x,y,z: u'%s:%s[%s]' % (x, y, z)
    return [binding_template(t, remote_host, o) for t in transports for
o in options]

Tomas




More information about the Freeipa-devel mailing list