Permalink
Browse files

this is just a filter so only return true/false

  • Loading branch information...
1 parent aef6099 commit 8439667097c2b1c559d5a800441605419805299f @ianshward ianshward committed Jun 19, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 index.js
View
@@ -206,12 +206,9 @@ function loadInstances(callback) {
return has(JSON.parse(instance.PuppetClasses), argv.filter.Class);
} else { return false }
case 'Parameter':
- if (instance.PuppetParameters &&
- _.has(JSON.parse(instance.PuppetParameters), argv.filter.Parameter)) {
- return JSON.parse(instance.PuppetParameters)[argv.filter.Parameter];
- } else {
- return false
- }
+ if (instance.PuppetParameters) {
+ return _.has(JSON.parse(instance.PuppetParameters), argv.filter.Parameter);
+ } else { return false }
case 'Environment':
if (instance.PuppetEnvironment) {
return instance.PuppetEnvironment;

0 comments on commit 8439667

Please sign in to comment.