def _get_shells():
 start = time.time()
 if ('sh.last_shells' in __context__):
  if ((start - __context__['sh.last_shells']) > 5):
   __context__['sh.last_shells'] = start
  else:
   __context__['sh.shells'] = __salt__['cmd.shells']()
 else:
  __context__['sh.last_shells'] = start
  __context__['sh.shells'] = __salt__['cmd.shells']()
 return __context__['sh.shells']

def _get_shells ( ) : start = time . time ( ) if ( 'sh.last_shells' in __context__ ) : if ( ( start - __context__ [ 'sh.last_shells' ] ) > 5 ) : __context__ [ 'sh.last_shells' ] = start else : __context__ [ 'sh.shells' ] = __salt__ [ 'cmd.shells' ] ( ) else : __context__ [ 'sh.last_shells' ] = start __context__ [ 'sh.shells' ] = __salt__ [ 'cmd.shells' ] ( ) return __context__ [ 'sh.shells' ]
return the valid shells on this system .