Author: croberts Date: 2012-12-18 18:23:31 +0000 (Tue, 18 Dec 2012) New Revision: 5617
Modified: branches/elephant/cumin/python/cumin/gridhadoop/hadoop.py Log: "nice-casing" the value in the State column. RUNNING will now be presented as "Running"
Modified: branches/elephant/cumin/python/cumin/gridhadoop/hadoop.py =================================================================== --- branches/elephant/cumin/python/cumin/gridhadoop/hadoop.py 2012-12-18 18:20:52 UTC (rev 5616) +++ branches/elephant/cumin/python/cumin/gridhadoop/hadoop.py 2012-12-18 18:23:31 UTC (rev 5617) @@ -39,7 +39,10 @@ field_data = list() for column in self.columns: try: - val = record[column.name.lower()] + if column.name == "State": + val = record[column.name.lower()].title() + else: + val = record[column.name.lower()] except AttributeError: if (column.name == "Ipc"): val = record.ref.ipc
cumin-developers@lists.fedorahosted.org