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

Fix credential validation if no metrics given #140

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Nov 9, 2017

If no metrics credentials are given the metrics_server is "" not nil.
This was causing it to continue past the return true unless server
line and fail later on.

This checks if the metrics_server is .blank? which will catch nil as
well as "".

Introduced by #134

If no metrics credentials are given the metrics_server is "" not nil.
This was causing it to continue past the `return true unless server`
line and fail later on.

This checks if the metrics_server is `.blank?` which will catch nil as
well as "".
@miq-bot
Copy link
Member

miq-bot commented Nov 9, 2017

Checked commit agrare@7fed90d with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@oourfali
Copy link
Contributor

@jhernand can you please review?

@oourfali oourfali merged commit 0a05dcd into ManageIQ:master Nov 10, 2017
@agrare agrare deleted the fix_credential_validaion_without_metrics branch November 14, 2017 13:45
simaishi pushed a commit that referenced this pull request Nov 14, 2017
…metrics

Fix credential validation if no metrics given
(cherry picked from commit 0a05dcd)

https://bugzilla.redhat.com/show_bug.cgi?id=1511079
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit a72c858a69b1d8c50d1c0d514174053534bd1214
Author: Oved Ourfali <oourfali@redhat.com>
Date:   Fri Nov 10 09:06:28 2017 +0200

    Merge pull request #140 from agrare/fix_credential_validaion_without_metrics
    
    Fix credential validation if no metrics given
    (cherry picked from commit 0a05dcd81cc6f66125b396a2eb5bfa33f187358e)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1511079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants