Ravi Nori has uploaded a new change for review. Change subject: cli: update on vm --os-boot does not work as expected(#1012985) ......................................................................
cli: update on vm --os-boot does not work as expected(#1012985) Update of os-boot dev does not work on existing VM Change-Id: Icc3aa9c42fed2f6fc423e106096f197ef4be3819 Bug-Url: https://bugzilla.redhat.com/1012985 Signed-off-by: Ravi Nori <[email protected]> --- M src/ovirtcli/command/command.py 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/98/20098/1 diff --git a/src/ovirtcli/command/command.py b/src/ovirtcli/command/command.py index 9b9b6dc..d3f78e0 100644 --- a/src/ovirtcli/command/command.py +++ b/src/ovirtcli/command/command.py @@ -105,6 +105,7 @@ """INTERNAL: set data in to object based on 'prop' map segmentation""" props = prop.split('-') props_len = len(props) + clearListData = True if props_len > 1 or (props_len == 1 and hasattr(obj, prop)): for i in range(props_len): if props[i] == 'type': props[i] = 'type_' @@ -138,6 +139,12 @@ if not hasattr(obj_params_set_cand, param_period): param_period = self.fixParamNameIfParamIsKeyword(param_period) if hasattr(obj_params_set_cand, param_period): + attrList = getattr(obj, props[i]) + if attrList != None and clearListData: + attrListLen = len(attrList) + for x in range(0, attrListLen): + attrList.pop() + clearListData = False if getattr(obj_params_set_cand, param_period) != None: getattr(obj, props[i]).append(obj_params_set_cand) obj_params_set_cand = params_set_cand.factory() -- To view, visit http://gerrit.ovirt.org/20098 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icc3aa9c42fed2f6fc423e106096f197ef4be3819 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-cli Gerrit-Branch: master Gerrit-Owner: Ravi Nori <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
