def shells():
    shells_fn = '/etc/shells'
    ret = []
    if os.path.exists(shells_fn):
        try:
            with salt.utils.fopen(shells_fn, 'r') as shell_fp:
                lines = shell_fp.read().splitlines()
            for line in lines:
                line = line.strip()
                if line.startswith('#'):
                    continue
                elif not line:
                    continue
                else:
                    ret.append(line)
        except OSError:
            log.error("File '{0}' was not found".format(shells_fn))
    return ret
Create a model.ShardState.
dataset/ETHPy150Open saltstack/salt/salt/modules/cmdmod.py/shells--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/testlib/testutil.py/HandlerTestBase.create_shard_state