Created
September 21, 2010 16:53
-
-
Save lusis/590031 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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