def set_public_lan(conn, vm_):
    datacenter_id = get_datacenter_id()

    if 'public_lan' in vm_:
        lan_id = vm_['public_lan']
        lan = conn.get_lan(datacenter_id=datacenter_id, lan_id=lan_id)
        if not lan['properties']['public']:
            conn.update_lan(datacenter_id=datacenter_id,
                            lan_id=lan_id,
                            public=True)
logins is a dict of {remote: list(user, password)}
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/profitbricks.py/set_public_lan--crossover with--dataset/ETHPy150Open conan-io/conan/conans/test/tools.py/MockedUserIO.__init__