Skip to content

Commit c3c8baf

Browse files
wilderrodriguesyadvr
authored andcommitted
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>
1 parent b29d8e7 commit c3c8baf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎api/src/org/apache/cloudstack/api/command/admin/host/UpdateHostPasswordCmd.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Long getClusterId() {
6767
}
6868

6969
public Boolean getUpdatePasswdOnHost() {
70-
return updatePasswdOnHost;
70+
return updatePasswdOnHost == null ? false : true;
7171
}
7272

7373
public String getPassword() {

0 commit comments

Comments
 (0)