.. versionadded:: 2019.2.0

    Set the glusterfs volume op-version

    version
        Version to set the glusterfs volume op-version

    CLI Example:

    .. code-block:: bash

        salt '*' glusterfs.set_op_version <volume>

def set_op_version(version):
    '''
    .. versionadded:: 2019.2.0

    Set the glusterfs volume op-version

    version
        Version to set the glusterfs volume op-version

    CLI Example:

    .. code-block:: bash

        salt '*' glusterfs.set_op_version <volume>
    '''

    cmd = 'volume set all cluster.op-version {0}'.format(version)
    root = _gluster_xml(cmd)

    if not _gluster_ok(root):
        return False, root.find('opErrstr').text

    return root.find('output').text