def success(self):
        if self.status == 403:
            raise InvalidCredsError('Invalid credentials', GoGridNodeDriver)
        if self.status == 401:
            raise InvalidCredsError('API Key has insufficient rights', GoGridNodeDriver)
        if not self.body:
            return None
        try:
            return json.loads(self.body)['status'] == 'success'
        except __HOLE__:
            raise MalformedResponseError('Malformed reply', body=self.body, driver=GoGridNodeDriver)
dataset/ETHPy150Open cloudkick/libcloud/libcloud/compute/drivers/gogrid.py/GoGridResponse.success