1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #1554 from eric/fix-host-role-filter

Continue if HOSTROLEFILTER= is set
This commit is contained in:
Lee Hambley 2016-01-07 21:34:10 +01:00
commit c0f5be4055

View file

@ -153,7 +153,7 @@ module Capistrano
servers = find_servers_for_task(task, options) servers = find_servers_for_task(task, options)
if servers.empty? if servers.empty?
if ENV['HOSTFILTER'] || task.options.merge(options)[:on_no_matching_servers] == :continue if ENV['HOSTFILTER'] || ENV['HOSTROLEFILTER'] || task.options.merge(options)[:on_no_matching_servers] == :continue
logger.info "skipping `#{task.fully_qualified_name}' because no servers matched" logger.info "skipping `#{task.fully_qualified_name}' because no servers matched"
else else
unless dry_run unless dry_run