[node-patches] Change in ovirt-node[master]: increase default recursion limit

mburns at redhat.com mburns at redhat.com
Fri Nov 16 17:54:29 UTC 2012


Michael Burns has uploaded a new change for review.

Change subject: increase default recursion limit
......................................................................

increase default recursion limit

By default, the recursion limit is 1000.  This causes exceptions
to be thrown by the TUI due to a design limitation.  Increasing
the limit to a large number will mitigate this problem until
a TUI redesign can be completed

rhbz#873190

Change-Id: Ieed91701bb22b42c0ffe2493f80ff2275b3a7664
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M scripts/ovirt-config-setup.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/93/9293/1

diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index 6069464..6caba79 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -2235,6 +2235,7 @@
             print ("Unable to run setup manually, Run \"exit\" to return " +
                   "to setup")
         else:
+            sys.setrecursionlimit(50000)
             tty = get_ttyname()
             lockfile = "/tmp/ovirt-setup.%s" % tty
             f = open(lockfile, "w").close()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieed91701bb22b42c0ffe2493f80ff2275b3a7664
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list