usr/src/cmd/installadm/list.py
changeset 862 e9f31f2f2f2d
parent 754 0eeb7b2fa05a
child 906 1293ecd7e911
--- a/usr/src/cmd/installadm/list.py	Tue Aug 17 18:22:44 2010 -0400
+++ b/usr/src/cmd/installadm/list.py	Fri Aug 20 11:31:18 2010 -0600
@@ -19,8 +19,8 @@
 #
 # CDDL HEADER END
 #
-# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+#
 """
 
 A/I List Services
@@ -824,7 +824,7 @@
                     'platform':'', 'network':'', 'cpu':''}
         twidth = 0
         for key in mancriteria.keys():
-            if not mancriteria[key] or mancriteria[key] == '':
+            if mancriteria[key] is None or mancriteria[key] == '':
                 continue # no criteria for instance key
             twidth = max(twidth, len(key.lstrip('MAX').lstrip('MIN')))
             svalue = AIdb.formatValue(key, mancriteria[key])