def show_dbs(*dbs):
 if dbs:
  log.debug('get dbs from pillar: {0}'.format(dbs))
  result = {}
  for db in dbs:
   result[db] = __salt__['pillar.get'](('oracle:dbs:' + db))
  return result
 else:
  pillar_dbs = __salt__['pillar.get']('oracle:dbs')
  log.debug('get all ({0}) dbs from pillar'.format(len(pillar_dbs)))
  return pillar_dbs

def show_dbs ( * dbs ) : if dbs : log . debug ( 'get dbs from pillar: {0}' . format ( dbs ) ) result = { } for db in dbs : result [ db ] = __salt__ [ 'pillar.get' ] ( ( 'oracle:dbs:' + db ) ) return result else : pillar_dbs = __salt__ [ 'pillar.get' ] ( 'oracle:dbs' ) log . debug ( 'get all ({0}) dbs from pillar' . format ( len ( pillar_dbs ) ) ) return pillar_dbs
show databases configuration from pillar .