Yaniv Bronhaim has uploaded a new change for review.

Change subject: API: Locking mapping logic of using ssh username field.
......................................................................

API: Locking mapping logic of using ssh username field.

To keep using root username until providing the ability to use other
usernames to authentication with the host.

Change-Id: Ib1717358e838355c7c51ba861fc38216ab7362af
Signed-off-by: Yaniv Bronhaim <[email protected]>
---
M 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/97/16997/1

diff --git 
a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
 
b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
index 440d732..efcbb04 100644
--- 
a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
+++ 
b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
@@ -553,9 +553,10 @@
                 if (action.getSsh().getUser().isSetPassword()) {
                     
params.setRootPassword(action.getSsh().getUser().getPassword());
                 }
-                if (action.getSsh().getUser().isSetUserName()) {
-                      
params.getvds().setSshUsername(action.getSsh().getUser().getUserName());
-                }
+                // TODO: uncomment when non-root username support is available
+                //if (action.getSsh().getUser().isSetUserName()) {
+                //      
params.getvds().setSshUsername(action.getSsh().getUser().getUserName());
+                //}
             }
             if (action.getSsh().isSetPort()) {
                 params.getvds().setSshPort(action.getSsh().getPort());


-- 
To view, visit http://gerrit.ovirt.org/16997
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1717358e838355c7c51ba861fc38216ab7362af
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to