From d5485d9f8ecea8900a31f83397bfcb5722e507e1 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Wed, 31 Aug 2011 15:34:34 -0700 Subject: [PATCH] Merge hosts at CLI-kwarg level if exclude_hosts kwarg is present. Re #373 --- fabric/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric/main.py b/fabric/main.py index bad6955058..1bd661deff 100644 --- a/fabric/main.py +++ b/fabric/main.py @@ -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', [])