crowbar/barclamp-deployer — pull request #164 by vuntz (2013-11-22 10:35:35+00:00)
Title: Fix finding bridge slaves

Commit f2f444ab broke the detection of bridge slaves: it tried to check
if symlinks were pointing to existing files, but was not expanding the
paths to absolute paths. So the tests were failing because they were
done on relative paths...

Commit cb6c1b84 attempted to fix that, but the fix wasn't fully correct
either as far as I can tell: it does
File.join("/sys/class/net/foo/brif/eth0.300", "../../eth0.300/brport")
instead of
File.join("/sys/class/net/foo/brif", "../../eth0.300/brport")

Note that we're using File.expand_path (and not File.realpath) to keep
compatibility with ruby 1.8.x.