Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #8422 - primary detection for non-discovered #103

Conversation

ares
Copy link
Member

@ares ares commented Nov 20, 2014

We injected discovery way to chose primary interface to puppet fact
parser that is used also for not discovered host which are missing
discovery specific facts. Mac for such value was evaluated to nil
which matched also macaddress_lo so lo was chosen as primary
interface.

@domcleal
Copy link

A test would be good to prevent regressions, as this is modifying core.

We injected discovery way to chose primary interface to puppet fact
parser that is used also for not discovered host which are missing
discovery specific facts. Mac for such value was evaluated to nil
which matched also macaddress_lo so lo was chosen as primary
interface.
@ares ares force-pushed the fix/8422-primary_interface_detection_only_for_discovered branch from e87ef22 to ed5f252 Compare November 20, 2014 13:40
@ares
Copy link
Member Author

ares commented Nov 20, 2014

I added tests and fixed the same error in primary interface detection (also covered by tests)

@domcleal
Copy link

Test failures appear to be due to theforeman/foreman@eaefbec, which I logged against core as http://projects.theforeman.org/issues/8456.

@domcleal
Copy link

[test]

@domcleal
Copy link

Tests are now passing. Looks correct I think 👍

@mmoll
Copy link
Contributor

mmoll commented Nov 25, 2014

tested, fixes the bug for me 👍

@GregSutcliffe
Copy link
Member

Merged as 83ee2e2, thanks @ares !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants