cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [04/50] [abbrv] git commit: updated refs/heads/reporter to 3e1816d
Date Mon, 27 Jul 2015 08:42:52 GMT
CLOUDSTACK-8641 - When calling "update hostpassword" API it throws NPE if the update_passwd_on_host
if not informed

   - On getUpdatePasswdOnHost() method, if updatePasswdOnHost is null then return false.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c3c8baf2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c3c8baf2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c3c8baf2

Branch: refs/heads/reporter
Commit: c3c8baf259ab3aa695e7a425b33fe9d44d8549dd
Parents: b29d8e7
Author: wilderrodrigues <wrodrigues@schubergphilis.com>
Authored: Thu Jul 16 12:13:27 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Jul 16 18:28:27 2015 +0530

----------------------------------------------------------------------
 .../cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c3c8baf2/api/src/org/apache/cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java
b/api/src/org/apache/cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java
index d8c4ea5..5a884cf 100644
--- a/api/src/org/apache/cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java
@@ -67,7 +67,7 @@ public class UpdateHostPasswordCmd extends BaseCmd {
     }
 
     public Boolean getUpdatePasswdOnHost() {
-        return updatePasswdOnHost;
+        return updatePasswdOnHost == null ? false : true;
     }
 
     public String getPassword() {


Mime
View raw message