athena-oss / athena

An automation platform with a plugin architecture that allows you to easily create and share services.
https://athena-oss.github.io/athena/
Apache License 2.0
92 stars 25 forks source link

get_host_ip_for_linux() broken on newer ifconfig output format #39

Closed ghost closed 7 years ago

ghost commented 7 years ago

Reproducible on Athena 0.10.3 running on Archlinux.

Function athena.os._get_host_ip_for_linux depends on a certain ifconfig output pattern that has changed in newer versions.

It used to be like this:

inet addr:{$ip_address} netmask ... broadcast ...

Now it's like this:

inet {$ip_address}  netmask ... broadcast ...

Both versions need to be supported.