mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
b29d8e7280
commit
c3c8baf259
|
|
@ -67,7 +67,7 @@ public class UpdateHostPasswordCmd extends BaseCmd {
|
|||
}
|
||||
|
||||
public Boolean getUpdatePasswdOnHost() {
|
||||
return updatePasswdOnHost;
|
||||
return updatePasswdOnHost == null ? false : true;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue