lib/chronicle/etl/cli/secrets.rb in chronicle-etl-0.5.3 vs lib/chronicle/etl/cli/secrets.rb in chronicle-etl-0.5.4
- old
+ new
@@ -44,10 +44,10 @@
rows = []
all_secrets.each do |namespace, secrets|
rows += secrets.map do |key, value|
# hidden_value = (value[0..5] + ("*" * [0, [value.length - 5, 30].min].max)).truncate(30)
- truncated_value = value.truncate(30)
+ truncated_value = value&.truncate(30)
[namespace, key, truncated_value]
end
end
headers = ['namespace', 'key', 'value'].map { |h| h.upcase.bold }