[node-patches] Change in ovirt-node[master]: fix list assignment in rhn code

mburns at redhat.com mburns at redhat.com
Mon Oct 15 19:52:40 UTC 2012


Michael Burns has submitted this change and it was merged.

Change subject: fix list assignment in rhn code
......................................................................


fix list assignment in rhn code

in python, when variable "a" is a list, and you assign

b=a

you get 2 variables pointing to the same list.  So any
operation you do on a, get done on b and vice versa.
Instead of this, do b=list(a) to get a new list with the
same content.

Change-Id: I3ac8365d605dd664b74243bd76889b1c9e41e608
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M scripts/rhn.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Michael Burns: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3ac8365d605dd664b74243bd76889b1c9e41e608
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>
Gerrit-Reviewer: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list