clusto/clusto — pull request #13 by motivator (2012-06-16 00:41:03+00:00)
Title: allow binding ips to multiple osports

if you attempt to bind_ip_to_osport one ip to 'eth0' and another to 'eth1' the 2nd call to bind_ip_to_osport will overwrite the attribute written by the 1st call. bind_ip_to_osport() was getting all attributes with key='ip' and using the number from the 1st object from the list returned by get_resource_attrs(). this patch first looks up the number and uses that as an arg to get_resource_attrs()