PulpConnection.shutDown() is never called and is broken. It calls self.conn.close() while Reslib doesn't implement this method. I recommend using pylint to catch such issues.
fixed! commit e3661b387aafcbc82d599843169855605542f095 Author: Pradeep Kilambi <pkilambi> Date: Tue Feb 8 13:40:37 2011 -0500
Fixed in 0.136.
To Test: #!/usr/bin/python from pulp.client import connection conn = connection.PulpConnection() conn.setUp() conn.task_status("/repositories/") conn.shutDown() Make sure shutdown doesnt error with Attribute error
verified [root@preethi ~]# rpm -q pulp pulp-0.0.137-1.fc14.noarch [root@preethi ~]# ran the above script without errors [root@preethi ~]# python bug_675706.py [root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4.