Closed LoyVanBeek closed 4 years ago
Not sure how this should be solved, I can create a PR when a correct approach is determined
@LoyVanBeek - thanks for opening an issue and explaining - seems like a very narrow case, I have no objections to failing with a loud and clear exception for this!
I would think that the exception should happen when trying to invoke ip
and finding that it doesn't exist, but not at for instance module load time.
What I had in mind was raising an exception in the get_command
method of UnixIPParser
and/or to check the return code.
Coming from https://github.com/ros2/ros2cli/issues/425,
ifcfg
reports no interfaces when neitherip
norifconfig
are available (as shown in the debug session output below)I think this is incorrect and that
ifcfg
should raise an exception in that (dire, uncommon) case.