Mentions légales du service

Skip to content

Add a list for the check() method

Hello,

Every time I run my script using the enoslib, it's check the connection of the Grid'5000. But I'm not using it

Could it be possible to add a parameters to the check method ?

something like this

import enoslib as en

en.init_logging(level=logging.WARNING)
en.check(["IOT-lab"])

The code is very simple, in the patch below.

I would be happy to do a Merge requests by I think I don't havec right to fork the project (so you can use the tiny patch)

some-changes.patch


Note: will can also create a better patch by logging the invalid names of plateform

someting like

if to_filter:
    # do check
    valid_plateform = [one_dep[0] for one_dep in deps]
    for one_input_plateform in to_filter:
        if one_input_plateform is not in valid_plateform:
            logging.warning(f"The plateform {one_input_plateform} is not valid")
    # create new deps
    deps = [one_dep for one_dep in deps if one_dep[0] in to_filter]
Edited by nans
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information