def edit_cpu(self, cpu_qty, debug=False):
        if not self.status == 2:
            raise OperationNotPermitted("Cannot edit resources in the current state of the VM.")
        self.cpu_qty = cpu_qty
        json_obj = self._commit_compute_resources()