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

improve the error message when a search fails #257

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Aug 7, 2018

No description provided.

bootstrap.py Outdated
@@ -699,7 +699,8 @@ def return_matching_key(api_path, search_key, return_key, null_result_ok=False):
elif result_len == 0 and null_result_ok is True:
return None
else:
print_error("%d element in array for search key '%s' in API '%s'. Please note that all searches are case-sensitive. Fatal error." % (result_len, search_key, api_path))
print_error("%d element in array for search key '%s' in API '%s'. Please note that all searches are case-sensitive." % (result_len, search_key, api_path))
print_error("Please also ensure the user can see the searched objects. Fatal error.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change this to Please also ensure that the user has permissions to view the search objects

Otherwise, ack.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah.

@evgeni evgeni force-pushed the better-fail-search branch from 917b4a0 to 60a1c81 Compare August 7, 2018 14:11
@evgeni evgeni merged commit 31da8ae into Katello:master Aug 7, 2018
evgeni added a commit to evgeni/katello-client-bootstrap that referenced this pull request Jan 24, 2019
changelog:
* Python 3 support
* Capability to preserve proxy settings when reconfiguring/migrating the client (Katello#283)
* EL5 subscription manager compatibility fixes (Katello#284)
* Only yum clean metadata and dbcache, not RPMs (Katello#280)
* Allow defining where to get ssh keys and where to store them (Katello#281)
* Make the FIPS check more robust (Katello#279)
* Support yum and dnf Python bindings (Katello#271)
* Option to ignore registration failures (Katello#261)
* Force lowercase FQDN writing puppet configuration (Katello#255)
* Improve the error message when a search fails (Katello#257)
@evgeni evgeni mentioned this pull request Jan 24, 2019
evgeni added a commit that referenced this pull request Jan 25, 2019
changelog:
* Python 3 support
* Capability to preserve proxy settings when reconfiguring/migrating the client (#283)
* EL5 subscription manager compatibility fixes (#284)
* Only yum clean metadata and dbcache, not RPMs (#280)
* Allow defining where to get ssh keys and where to store them (#281)
* Make the FIPS check more robust (#279)
* Support yum and dnf Python bindings (#271)
* Option to ignore registration failures (#261)
* Force lowercase FQDN writing puppet configuration (#255)
* Improve the error message when a search fails (#257)
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

Successfully merging this pull request may close these issues.

2 participants