Kanagaraj M has uploaded a new change for review. Change subject: webadmin: passing back fingerprint while updating host ......................................................................
webadmin: passing back fingerprint while updating host While importing the hosts from a gluster cluster, the hosts are saved along with their sshKeyFingerprint. While updating the details of the hosts, the sshKeyFingerprint will be passed back to the backend as it is. If it is not passed, then backend thinks that the user is trying to update the sshFingerprint with null and returns an update error to frontend. Change-Id: I9e73b8bbbf5e7f2281f7a192a0157c2cc395dfc5 Bug-Url: https://bugzilla.redhat.com/888247 Signed-off-by: Kanagaraj M <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Cloner.java M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java 2 files changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/34/12234/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Cloner.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Cloner.java index 0cc288b..6db6e58 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Cloner.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Cloner.java @@ -204,6 +204,7 @@ VDS obj = new VDS(); obj.setHostName(instance.getHostName()); + obj.setSSHKeyFingerprint(instance.getSSHKeyFingerprint()); obj.setManagementIp(instance.getManagementIp()); obj.setPmUser(instance.getPmUser()); diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java index c98b286..b07ede2 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java @@ -794,6 +794,7 @@ host.setVdsName((String) model.getName().getEntity()); host.setHostName((String) model.getHost().getEntity()); host.setPort(Integer.parseInt(model.getPort().getEntity().toString())); + host.setSSHKeyFingerprint(host.getSSHKeyFingerprint()); host.setVdsSpmPriority(model.getSpmPriorityValue()); boolean consoleAddressSet = (Boolean) model.getConsoleAddressEnabled().getEntity(); host.setConsoleAddress(!consoleAddressSet ? null : (String) model.getConsoleAddress().getEntity()); -- To view, visit http://gerrit.ovirt.org/12234 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9e73b8bbbf5e7f2281f7a192a0157c2cc395dfc5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Kanagaraj M <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
