code: func (os *OpenStack) OperationPending(diskName string) (bool, string, error) {
  	volume, err := os.getVolume(diskName)
  	if err != nil {
  		return false, "", err
  	}
  	volumeStatus := volume.Status
  	if volumeStatus == volumeErrorStatus {
  		err = fmt.Errorf("status of volume %s is %s", diskName, volumeStatus)
  		return false, volumeStatus, err
  	}
  	if volumeStatus == volumeAvailableStatus || volumeStatus == volumeInUseStatus || volumeStatus == volumeDeletedStatus {
  		return false, volume.Status, nil
  	}
  	return true, volumeStatus, nil
  }
docs: // OperationPending checks if there is an operation pending on a volume