def find_credentials(host):
 user_names = [__pillar__['proxy'].get('username', 'root')]
 passwords = __pillar__['proxy']['passwords']
 for user in user_names:
  for password in passwords:
   try:
    ret = __salt__['vsphere.system_info'](host=host, username=user, password=password)
   except SaltSystemExit:
    continue
   if ret:
    DETAILS['username'] = user
    DETAILS['password'] = password
    return (user, password)
 raise SaltSystemExit('Cannot complete login due to an incorrect user name or password.')

def find_credentials ( host ) : user_names = [ __pillar__ [ 'proxy' ] . get ( 'username' , 'root' ) ] passwords = __pillar__ [ 'proxy' ] [ 'passwords' ] for user in user_names : for password in passwords : try : ret = __salt__ [ 'vsphere.system_info' ] ( host = host , username = user , password = password ) except SaltSystemExit : continue if ret : DETAILS [ 'username' ] = user DETAILS [ 'password' ] = password return ( user , password ) raise SaltSystemExit ( 'Cannot complete login due to an incorrect user name or password.' )
look in the current environment for twilio credentials .