-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[knife] Assume a default key when no colon in QUERY #3526
Comments
On further consideration, using the fqdn key and NOT providing a means to set another default key would seem to imply that the feature in #3527 could equally apply to
Again, this would align with user expectations of the |
|
thanks! found it: Lines 161 to 165 in b08c901
I'll mess around with it later |
Hm. On consideration, "tags or role or fqdn or addresses" might be a little too general for a possibly destructive command, you think? |
I never run a destructive ssh command without validating the targets it will hit with a non-destructive command. And the knife ssh command is necessarily a chainsaw, anyone with access to it is trusted to not run 'knife ssh "sudo rm -rf / &"' |
:) 👍 I'll look into tests then |
I agree that the QUERY has a default key when And, It will enough for in most use cases, I think.
|
@sawanoboly Thanks for the feedback. @lamont-granquist said in the PR's inline comments that he preferred this share the same fuzziness as search, so I'm assuming that applies to all indexes. Correct me if I'm wrong though, @lamont-granquist |
Yes, and not just share the same semantics, but no code duplication. Extract a method, if there isn't one already, and use it both places consistently. |
And dan is updating the knife search node fuzzifier method in #3913 for policyfiles now (which is precisely why the fuzzifier needs to exist only in one spot, not many) |
The thought would be that this could be
name:
by default (or perhapsfqdn:
?), but it could be set to something else inknife.rb
The text was updated successfully, but these errors were encountered: