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

Distinguish between no password provided and bad password in error message #17792

Merged
merged 1 commit into from
Aug 2, 2018

Conversation

mkanoor
Copy link
Contributor

@mkanoor mkanoor commented Aug 1, 2018

https://bugzilla.redhat.com/show_bug.cgi?id=1443105

When invoking a GitRepository sync from rake task or from the UI
the user might not provide a userid and password. This PR puts out
different error messages
If the userid and password is missing

  • Please provide username and password for URL #{url}
    If the userid and password is incorrect the message is
  • Invalid credentials for URL #{url}

https://bugzilla.redhat.com/show_bug.cgi?id=1443105

When invoking a GitRepository sync from rake task or from the UI
the user might not provide a userid and password. This PR puts out
different error messages
If the userid and password is missing
 * Please provide username and password for URL #{url}
If the userid and password is incorrect the message is
 * Invalid credentials for URL #{url}
@mkanoor mkanoor requested a review from gmcculloug August 1, 2018 20:54
@mkanoor mkanoor added the bug label Aug 1, 2018
@miq-bot
Copy link
Member

miq-bot commented Aug 1, 2018

Checked commit mkanoor@b41964d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

@gmcculloug gmcculloug self-assigned this Aug 1, 2018
@gmcculloug gmcculloug merged commit 818ed48 into ManageIQ:master Aug 2, 2018
@gmcculloug gmcculloug added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants