Created
October 3, 2011 16:39
-
-
Save bodepd/1259551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facts = Puppet::Rails::InventoryFact.find_by_sql(["SELECT inventory_facts.value, inventory_nodes.name AS node_name | |
FROM inventory_facts INNER JOIN inventory_nodes | |
ON inventory_facts.node_id = inventory_nodes.id | |
WHERE inventory_facts.name = ?", name]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment