(resources)
yield ip tuples of (instance_id, ip)
yield ip tuples of (instance_id, ip)
yield ip tuples of ( instance_id ip )
def iterips(resources):
    '''yield ip tuples of (instance_id, ip)'''
    for module_name, key, resource in resources:
        resource_type, name = key.split('.', 1)
        if resource_type == 'openstack_compute_floatingip_associate_v2':
            yield openstack_floating_ips(resource)
def iterips ( resources ) : for module_name , key , resource in resources : resource_type , name = key . split ( '.' , 1 ) if resource_type == 'openstack_compute_floatingip_associate_v2' : yield openstack_floating_ips ( resource )