Skip to content

Commit

Permalink
Merge hosts at CLI-kwarg level if exclude_hosts kwarg is present.
Browse files Browse the repository at this point in the history
Re #373
  • Loading branch information
bitprophet committed Aug 31, 2011
1 parent 6d4a909 commit d5485d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabric/main.py
Expand Up @@ -567,7 +567,7 @@ def get_hosts(command, cli_hosts, cli_roles, cli_exclude_hosts):
set.
"""
# Command line per-command takes precedence over anything else.
if cli_hosts or cli_roles:
if cli_hosts or cli_roles or cli_exclude_hosts:
return _merge(cli_hosts, cli_roles, cli_exclude_hosts)
# Decorator-specific hosts/roles go next
func_hosts = getattr(command, 'hosts', [])
Expand Down

0 comments on commit d5485d9

Please sign in to comment.