ndenev / mpssh

Mass Parallel SSH
120 stars 21 forks source link

Duplicate hosts when not using --label #19

Open JasonMaloney opened 9 years ago

JasonMaloney commented 9 years ago

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.

ndenev commented 9 years ago

Sounds good to me.

Cheers, Nikolay

Sent from my iPhone

On 12.12.2014 г., at 20:25, Jason Maloney notifications@github.com 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.