The python code didn't invoke the stored procedure with the right arguments. --- backend/server/test/attic/rhnServerGroup.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/backend/server/test/attic/rhnServerGroup.py b/backend/server/test/attic/rhnServerGroup.py index 6482b05..6595262 100644 --- a/backend/server/test/attic/rhnServerGroup.py +++ b/backend/server/test/attic/rhnServerGroup.py @@ -105,7 +105,11 @@ class CallableObj: def create_new_org(username, password): f = rhnSQL.Procedure('create_new_org') - ncl = rhnSQL.types.NUMBER - ret = f(username, password, None, None, 'P', ncl(), ncl(), ncl()) - org_id = ret[-3] - return int(org_id) + + username = rhnSQL.types.STRING(username) + password = rhnSQL.types.STRING(password) + ncl = rhnSQL.types.NUMBER + + ret = f(username, password, ncl()) + return int(ret[2]) + -- 1.8.4 _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel