def _save_password_in_keyring(credential_id, username, password):
 try:
  import keyring
  return keyring.set_password(credential_id, username, password)
 except ImportError:
  log.error('Tried to store password in keyring, but no keyring module is installed')
  return False

def _save_password_in_keyring ( credential_id , username , password ) : try : import keyring return keyring . set_password ( credential_id , username , password ) except ImportError : log . error ( 'Tried to store password in keyring, but no keyring module is installed' ) return False
saves provider password in system keyring .