<div dir="ltr">Hey Jason, <div><br></div><div>Rather embarrassingly that's not the patch  meant to send you (or indeed the one we run) as it's the wrong section (just didn't want to misinform anyone else that may have stumbled across this post, then taken that and run with it to realise it was wrong) <div>
<br></div><div>well that was unintentional... apologies<br><div><br></div><div>--- /usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association.py.orig<span class="" style="white-space:pre"> </span>2014-06-11 18:38:02.253028438 +0100<div>
+++ /usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association.py<span class="" style="white-space:pre">     </span>2014-03-20 15:31:08.101345574 +0000</div><div>@@ -380,9 +380,7 @@</div><div>         for unit_type_id, unit_ids in unit_map.items():</div>
<div>             spec = {'repo_id': repo_id,</div><div>                     'unit_type_id': unit_type_id,</div><div>-                    'unit_id': {'$in': unit_ids},</div><div>-                    'owner_type': owner_type,</div>
<div>-                    'owner_id': owner_id}</div><div>+                    'unit_id': {'$in': unit_ids}}</div><div>             collection.remove(spec, safe=True)</div></div></div></div></div>