Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Apr 26, 2024
1 parent 0c6a59b commit 88b18d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
sync_net = `cat /etc/redborder/rb_init_conf.yml | grep sync_net | awk '{print $2'} | sed 's|/.*||'`.strip
node['network']['interfaces'].each do |interface, details|
next unless "x#{interface}" != "xlo"
# ipaddress_sync = details['addresses'].keys[1] if (details['addresses'] and ipaddress_sync != details['addresses'].keys[1])
ipaddress_sync = `ip route get #{sync_net} | head -n 1 | awk '{for (i=1; i<=NF; i++) if ($i == "src") print $(i+1)}'`.strip
end
node.default[:ipaddress_sync]=ipaddress_sync
Expand Down

0 comments on commit 88b18d7

Please sign in to comment.