mux_tf 0.17.0 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mux_tf/plan_formatter.rb +3 -5
- data/lib/mux_tf/plan_utils.rb +5 -3
- data/lib/mux_tf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80853baebafb9d6d3ec72304a8923678287f46c929bd59ce7b2e854780b8ebe1
|
4
|
+
data.tar.gz: dfe50f16c1b43bbabc0eb34d7efce9095a8d42e4fe3f173f26e50f8761cad508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caf31dd65af4624d66e641219d36ac1fb10885ffed4c20bcd31d0708a504b7b930ed69286a25a5ac1994f89cb736e172869c2023c2e90b7613098611e953ee87
|
7
|
+
data.tar.gz: ba1fb959695f3cd1eb45734ca3875a80811bfc59a5da38e0c7b7220784fd203f86951e6aa1877bbeb68768152ff737c899d1aa91e7537658d3103eb9671b15be
|
@@ -114,8 +114,7 @@ module MuxTf
|
|
114
114
|
# }
|
115
115
|
# noop
|
116
116
|
when "resource_drift"
|
117
|
-
first_in_group = !seen.call(parsed_line[:module], "resource_drift")
|
118
|
-
!seen.call(parsed_line[:module], "planned_change")
|
117
|
+
first_in_group = !seen.call(parsed_line[:module], "resource_drift")
|
119
118
|
# {
|
120
119
|
# :change=>{
|
121
120
|
# "resource"=>{"addr"=>"module.application.kubectl_manifest.application", "module"=>"module.application", "resource"=>"kubectl_manifest.application", "implied_provider"=>"kubectl", "resource_type"=>"kubectl_manifest", "resource_name"=>"application", "resource_key"=>nil},
|
@@ -125,7 +124,7 @@ module MuxTf
|
|
125
124
|
if first_in_group
|
126
125
|
log ""
|
127
126
|
log ""
|
128
|
-
log "
|
127
|
+
log "Detected Drift:"
|
129
128
|
end
|
130
129
|
# {
|
131
130
|
# :change=>{
|
@@ -148,8 +147,7 @@ module MuxTf
|
|
148
147
|
if skip_plan_summary
|
149
148
|
log "" if first_in_group
|
150
149
|
else
|
151
|
-
first_in_group = !seen.call(parsed_line[:module], "
|
152
|
-
!seen.call(parsed_line[:module], "planned_change")
|
150
|
+
first_in_group = !seen.call(parsed_line[:module], "planned_change")
|
153
151
|
# {
|
154
152
|
# :change=>
|
155
153
|
# {"resource"=>
|
data/lib/mux_tf/plan_utils.rb
CHANGED
@@ -503,11 +503,13 @@ module MuxTf
|
|
503
503
|
end
|
504
504
|
end
|
505
505
|
|
506
|
-
|
506
|
+
actual_output_changes = (data["output_changes"] || []).reject { |_, change| change["actions"] == ["no-op"] }
|
507
|
+
|
508
|
+
if actual_output_changes.length.positive?
|
507
509
|
output << ""
|
508
510
|
output << "Changes to Outputs:"
|
509
|
-
max_outer_key_length =
|
510
|
-
|
511
|
+
max_outer_key_length = actual_output_changes.keys.map(&:length).max || 0
|
512
|
+
actual_output_changes.each do |key, output_change|
|
511
513
|
output << tf_show_json_output(key, output_change, max_outer_key_length)
|
512
514
|
end
|
513
515
|
end
|
data/lib/mux_tf/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mux_tf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Banasik
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-05-
|
10
|
+
date: 2025-05-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activesupport
|