Oved Ourfali has uploaded a new change for review. Change subject: core: allow using password authentication on foreman hosts ......................................................................
core: allow using password authentication on foreman hosts Previous patch removed the ability to use password authentication with external hosts provided by Foreman. This patch fixes that issue by hiding this option only when installation relevant properties are to be hidden. Change-Id: I26e351f0560ac4fe8f45ec2314ef4a6aa7ddafb9 Bug-Url: https://bugzilla.redhat.com/1079072 Signed-off-by: Oved Ourfali <oourf...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java 1 file changed, 7 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/65/25965/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java index 6fcea99..d1b9e3a 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java @@ -1657,10 +1657,13 @@ getConsoleAddress().setEntity(vds.getConsoleAddress()); getConsoleAddress().setIsChangable(consoleAddressEnabled); - getPkSection().setIsChangable(false); - getPkSection().setIsAvailable(false); - // Use public key when edit or approve host - setAuthenticationMethod(AuthenticationMethod.PublicKey); + if (!showInstallationProperties()) { + getPkSection().setIsChangable(false); + getPkSection().setIsAvailable(false); + + // Use public key when edit or approve host + setAuthenticationMethod(AuthenticationMethod.PublicKey); + } setAllowChangeHost(vds); -- To view, visit http://gerrit.ovirt.org/25965 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I26e351f0560ac4fe8f45ec2314ef4a6aa7ddafb9 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Oved Ourfali <oourf...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches