Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collins-shell set_attribute --selector doesn't find all hosts #72

Closed
funzoneq opened this issue Feb 26, 2013 · 1 comment
Closed

collins-shell set_attribute --selector doesn't find all hosts #72

funzoneq opened this issue Feb 26, 2013 · 1 comment

Comments

@funzoneq
Copy link
Contributor

There are 14 hosts with SECONDARY_ROLE:WEB_A, however the --selector command only finds 10.

collins-shell asset set_attribute THRIFT true --selector SECONDARY_ROLE:WEB_A
You are about to set THRIFT=true on 10 hosts. ARE YOU SURE? yes
success Set attribute on 005590
success Set attribute on 005550
success Set attribute on 005318
success Set attribute on 005218
success Set attribute on 005195
success Set attribute on 005160
success Set attribute on 002645
success Set attribute on 002137
success Set attribute on 001579
success Set attribute on 001566

I tested adding :size to the method set_attribute, but it doesn't take:

method_option :size, :type => :numeric, :default => 50, :desc => 'Number of results to find. Defaults to 50'

collins-shell asset set_attribute THRIFT true --size 5500 --selector SECONDARY_ROLE:WEB_A
You are about to set THRIFT=true on 10 hosts. ARE YOU SURE? yes
success Set attribute on 005590
success Set attribute on 005550
success Set attribute on 005318
success Set attribute on 005218
success Set attribute on 005195
success Set attribute on 005160
success Set attribute on 002645
success Set attribute on 002137
success Set attribute on 001579
success Set attribute on 001566

@bmatheny
Copy link
Contributor

Try adding SIZE:5500 to the selector, let me know if that works.

dalehamel pushed a commit to Shopify/collins that referenced this issue Jun 10, 2014
This allows batch operations to specify a --size option. A --threads option
would also be nice, especially for things like power status.
dalehamel pushed a commit to Shopify/collins that referenced this issue Jun 10, 2014
This allows batch operations to specify a --size option. A --threads option
would also be nice, especially for things like power status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants