fix provisionCertificate api returns NPE when 'reconnect' parameter is true#2756
fix provisionCertificate api returns NPE when 'reconnect' parameter is true#2756DaanHoogland merged 2 commits intoapache:masterapache/cloudstack:masterfrom shapeblue:bugfix-provision-certificate-api-npeshapeblue/cloudstack:bugfix-provision-certificate-api-npeCopy head branch name to clipboard
Conversation
|
Great @dhlaluku |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2189 |
|
@blueorangutan test |
|
@dhlaluku a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| @@ -368,9 +368,10 @@ public void reconnect(final long hostId) throws CloudRuntimeException, AgentUnav | ||
| if (result == null) { | ||
| super.reconnect(hostId); | ||
|
|
There was a problem hiding this comment.
Instead of adding an else block and then an if nested, what about simply using a return; statement here?
There was a problem hiding this comment.
Thanks, that is actually quite good since simplifies things and removes redundant code.
|
Trillian test result (tid-2866)
|
|
@blueorangutan package |
|
@dhlaluku a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✖centos7 ✔debian. JID-2191 |
|
@blueorangutan package |
|
@dhlaluku a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2193 |
|
@blueorangutan test |
|
@dhlaluku a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
borisstoyanov
left a comment
There was a problem hiding this comment.
The Certificate error is gone now, LGTM!
Once we get this merged we can test #2753
|
Trillian test result (tid-2869)
|
…s true (apache#2756) This PR fixes NPE with the provisionCertificateCmd when reconnect is set to True. Also fixes the following Marvin test failures: - test_certauthority_root.py
Description
This PR fixes NPE with the provisionCertificateCmd when reconnect is set to True.
Also fixes the following Marvin test failures:
Types of changes
GitHub Issue/PRs
Fixes: #2753
Screenshots (if appropriate):
How Has This Been Tested?
With cloudmonkey, see screenshot
Dev environment components:
Checklist:
Testing