Author: croberts Date: 2013-06-24 20:18:39 +0000 (Mon, 24 Jun 2013) New Revision: 5775
Modified: trunk/cumin/python/cumin/gridhadoop/hadoop.py Log: Mapping "Unmanaged" to "Infrastructure" on the Details pages of hadoop objects.
Modified: trunk/cumin/python/cumin/gridhadoop/hadoop.py =================================================================== --- trunk/cumin/python/cumin/gridhadoop/hadoop.py 2013-06-24 20:09:00 UTC (rev 5774) +++ trunk/cumin/python/cumin/gridhadoop/hadoop.py 2013-06-24 20:18:39 UTC (rev 5775) @@ -291,6 +291,8 @@ setattr(self, prop.name, aviary_response[1][0]["ref"][prop.name.lower()]) elif prop.name.lower() in ["parent_id", "parent_ipc"]: setattr(self, prop.name, aviary_response[1][0]["parent"][prop.name.lower().split("_")[1]]) + elif prop.name.lower() in ["state"] and aviary_response[1][0][prop.name.lower()].lower() == "unmanaged": + setattr(self, prop.name, "Infrastructure") else: setattr(self, prop.name, aviary_response[1][0][prop.name.lower()]) except AttributeError, e:
cumin-developers@lists.fedorahosted.org