mpssh icon indicating copy to clipboard operation
mpssh copied to clipboard

Duplicate hosts when not using --label

Open JasonMaloney opened this issue 11 years ago • 1 comments

If multiple labels contain the same host, and label is not specified at runtime, that host will be processed multiple times. The current workaround is to create an additional label to contain "all" hosts, but I would think duplicate hosts should be thrown out when reading the hosts file. I'll go ahead and write a patch to do it if you agree.

JasonMaloney avatar Dec 12 '14 19:12 JasonMaloney

Sounds good to me.

Cheers, Nikolay

Sent from my iPhone

On 12.12.2014 г., at 20:25, Jason Maloney [email protected] wrote:

If multiple labels contain the same host, and label is not specified at runtime, that host will be processed multiple times. The current workaround is to create an additional label to contain "all" hosts, but I would think duplicate hosts should be thrown out when reading the hosts file. I'll go ahead and write a patch to do it if you agree.

— Reply to this email directly or view it on GitHub.

ndenev avatar Dec 13 '14 18:12 ndenev