def scrub(zpool, stop=False):
    ret = {}
    ret[zpool] = {}
    if exists(zpool):
        zpool_cmd = _check_zpool()
        cmd = '{zpool_cmd} scrub {stop}{zpool}'.format(
            zpool_cmd=zpool_cmd,
            stop='-s ' if stop else '',
            zpool=zpool
        )
        res = __salt__['cmd.run_all'](cmd, python_shell=False)
        ret[zpool] = {}
        if res['retcode'] != 0:
            ret[zpool]['scrubbing'] = False
            if 'stderr' in res:
                if 'currently scrubbing' in res['stderr']:
                    ret[zpool]['scrubbing'] = True
                elif 'no active scrub' not in res['stderr']:
                    ret[zpool]['error'] = res['stderr']
            else:
                ret[zpool]['error'] = res['stdout']
        else:
            ret[zpool]['scrubbing'] = True if not stop else False
    else:
        ret[zpool] = 'storage pool does not exist'

    return ret
Ensure the widget is shown.
dataset/ETHPy150Open saltstack/salt/salt/modules/zpool.py/scrub--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/widget.py/Widget.show