Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

fix case matching issues in mac addresses #150

Merged
merged 1 commit into from Jun 13, 2014

Conversation

larsks
Copy link
Contributor

@larsks larsks commented Jun 13, 2014

this forces mac addresses to lower case when trying to
match discovery_bootif to a macaddress_* fact.

@larsks
Copy link
Contributor Author

larsks commented Jun 13, 2014

this forces discovery_bootif.value to upper case when trying to
match discovery_bootif to a macaddress_* fact.  The
macaddress_* facts generated by facter are always uppercase.
@@ -130,7 +130,7 @@ def assign_host_to_hostgroup(discovered_host, hostgroup)

interface = hosts_facts.
includes(:fact_name).
where(value: discovery_bootif.value).
where(value: discovery_bootif.value.upcase).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this better.

@knowncitizen
Copy link
Member

ACK

knowncitizen added a commit that referenced this pull request Jun 13, 2014
fix case matching issues in mac addresses
@knowncitizen knowncitizen merged commit 23fdec7 into theforeman:master Jun 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants