Skip to content

Instantly share code, notes, and snippets.

@lusis
Created September 21, 2010 16:53
Show Gist options
  • Save lusis/590031 to your computer and use it in GitHub Desktop.
Save lusis/590031 to your computer and use it in GitHub Desktop.
function(doc) {
var want = 'sshrsakey'
if (doc.doc_type == 'SystemRecord') {
if (doc.facter) {
var facter = doc.facter
for (var fact in facter) {
if (fact == want) {
emit(fact, doc.facter[fact])
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment