lib/zold/commands/remote.rb in zold-0.16.29 vs lib/zold/commands/remote.rb in zold-0.16.30
- old
+ new
@@ -174,10 +174,12 @@
clean
defaults
end
def defaults
- @remotes.defaults
+ @remotes.defaults do |host, port|
+ !opts['ignore-node'].include?("#{host}:#{port}")
+ end
@log.debug("Default remote nodes were added to the list, #{@remotes.all.count} total")
end
def add(host, port, opts)
if opts['ignore-node'].include?("#{host}:#{port}")