[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19550: {arm} Fixed bug with undefined exit policy. (arm/trunk)
Author: atagar
Date: 2009-05-25 01:28:35 -0400 (Mon, 25 May 2009)
New Revision: 19550
Modified:
arm/trunk/armInterface.py
Log:
Fixed bug with undefined exit policy.
Modified: arm/trunk/armInterface.py
===================================================================
--- arm/trunk/armInterface.py 2009-05-25 04:56:23 UTC (rev 19549)
+++ arm/trunk/armInterface.py 2009-05-25 05:28:35 UTC (rev 19550)
@@ -375,7 +375,8 @@
# adds note when default exit policy is appended
if maxY >= 5:
exitPolicy = vals["ExitPolicy"]
- if not exitPolicy.endswith("accept *:*") and not exitPolicy.endswith("reject *:*"):
+ if exitPolicy == None: exitPolicy = "<default>"
+ elif not exitPolicy.endswith("accept *:*") and not exitPolicy.endswith("reject *:*"):
exitPolicy += ", <default>"
screen.addstr(4, 0, ("Exit Policy: %s" % exitPolicy)[:maxX - 1], SUMMARY_ATTR)