Yaniv Bronhaim has posted comments on this change.

Change subject: API: Adding mapping between host and action parameters and 
using username field
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
Line 553:             if (action.getSsh().isSetUser()) {
Line 554:                 if (action.getSsh().getUser().isSetPassword()) {
Line 555:                     // For backward compatibility giving priority to 
rootPassword field
Line 556:                     if (params.getPassword() == null) {
Line 557:                         
params.setPassword(action.getSsh().getUser().getPassword());
what? all the reason for this patch is to allow using different username, if 
username isn't specified so that isSetUserName() is false, the default will be 
used (VdsStatic constructor set the defaults)
Line 558:                     }
Line 559:                 }
Line 560:                 if (action.getSsh().getUser().isSetUserName()) {
Line 561:                       
params.getvds().setSshUsername(action.getSsh().getUser().getUserName());


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifc7f6ba85ed6a5a790b3cc0acce3f5d6eb305789
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to