This commit is contained in:
Cassus Adam Banko
2012-08-03 14:08:59 +02:00
parent b2c95054fd
commit ae3dabda7a

View File

@@ -291,6 +291,7 @@ class Command(NoArgsCommand):
return count, results
def get_nodelist(self, node):
# Check if node is an ```if``` switch with true and false branches
if hasattr(node, 'nodelist_true') and hasattr(node, 'nodelist_false'):
return node.nodelist_true + node.nodelist_false
return getattr(node, "nodelist", [])