Some cnfvars like NICs support zero instance numbers and without
this fix the query would simply return all cnfvars in a cnf list
if we need `get_cnf CNFVAR 0` from the query.
elif instance is not None and not isinstance(instance, int):
raise TypeError(f"`instance` is of wrong type {type(instance)}")
- cmd = f"{BIN_GET_CNF} {name or ''} {instance or ''}"
+ # make sure 0 instance cnfvars like e.g. NICs can also be filtered by instance
+ cmd = f"{BIN_GET_CNF} {name or ''} {instance if instance is not None else ''}"
encoding = ENCODING
if no_children: