

def _to_status(self, element):
    if (element is None):
        return DimensionDataStatus()
    s = DimensionDataStatus(action=findtext(element, 'action', TYPES_URN), request_time=findtext(element, 'requestTime', TYPES_URN), user_name=findtext(element, 'userName', TYPES_URN), number_of_steps=findtext(element, 'numberOfSteps', TYPES_URN), step_name=findtext(element, 'step/name', TYPES_URN), step_number=findtext(element, 'step_number', TYPES_URN), step_percent_complete=findtext(element, 'step/percentComplete', TYPES_URN), failure_reason=findtext(element, 'failureReason', TYPES_URN))
    return s

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver._to_status/original