Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def with_named_ips_fixed
- attributes_to_fix = ['inside', 'outside']
- data = yield
- modified_values = data.output["static_nats"].map do |data_hash|
- hash_data = data_hash.map do |key, value| [
- if attributes_to_fix.include? key
- replace_named_ip(value)
- else
- value
- end
- ].to_h
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment