We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c2e863 commit 802d91fCopy full SHA for 802d91f
2 files changed
βlib/puppet/catalog-diff/differ.rbβ
@@ -71,6 +71,13 @@ def diff(options = {})
71
end
72
73
74
+ if options[:exclude_resource_types]
75
+ types = options[:exclude_resource_types].split(',')
76
+ [to, from].each do |c|
77
+ c.reject! { |x| types.include?(x[:type]) }
78
+ end
79
80
+
81
Puppet.debug("Processing: #{from_file}")
82
titles = {}
83
titles[:to] = extract_titles(to)
βlib/puppet/face/catalog/diff.rbβ
@@ -40,6 +40,10 @@
40
summary 'Do not print defined resources in resource diffs'
41
42
43
+ option '--exclude_resource_types=' do
44
+ summary 'A comma-separated list of (capitalized) resource types to exclude from the diff'
45
46
47
option '--ignore_parameters=' do
48
summary 'A comma-separated list of resource parameters to ignore in diff'
49
0 commit comments