Skip to content

Instantly share code, notes, and snippets.

@ccaum
Created December 28, 2015 22:03
Show Gist options
  • Save ccaum/27d758b4f5e5526e5b51 to your computer and use it in GitHub Desktop.
Save ccaum/27d758b4f5e5526e5b51 to your computer and use it in GitHub Desktop.
["and",
["~>", "path", ["package_updates", ".*", "name"]],
["not",
["in", "value",
["extract", "title",
["select_resources",
["and",
["=", "type", "Package"],
["not",
["or",
["=", ["parameter", "ensure"], "absent"],
["=", ["parameter", "ensure"], "uninstalled"],
["=", ["parameter", "ensure"], "purged"],
["=", ["parameter", "ensure"], "present"],
["=", ["parameter", "ensure"], "installed"],
["=", ["parameter", "ensure"], "held"]
]
]
]
]
]
]
]
]
@ccaum
Copy link
Author

ccaum commented Dec 28, 2015

Note this run against the /pdb/query/v4/fact-contents endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment