backend/satellite_tools/spacewalk-remove-channel | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit a941d18d25b8748a1f23c9016c5ab26307b10522 Author: Michael Mraka michael.mraka@redhat.com Date: Fri Feb 4 15:06:45 2011 +0100
674510 - fixed procedure call (PG)
diff --git a/backend/satellite_tools/spacewalk-remove-channel b/backend/satellite_tools/spacewalk-remove-channel index 65a2280..233e680 100755 --- a/backend/satellite_tools/spacewalk-remove-channel +++ b/backend/satellite_tools/spacewalk-remove-channel @@ -221,9 +221,11 @@ def __unsubscribeServers(labels):
def __unbsubscribeServer(server_id, channel_id): sql = """ - call rhn_channel.unsubscribe_server(:server_id, :channel_id) + begin + /*pg perform*/ rhn_channel.unsubscribe_server(:server_id, :channel_id); + end; """ - h = rhnSQL.prepare(sql) + h = rhnSQL.prepare(sql, params=('server_id numeric', 'channel_id numeric')) h.execute(server_id=server_id, channel_id=channel_id)
spacewalk-commits@lists.fedorahosted.org