code: def _save_password_in_keyring(credential_id, username, password):
      '''
      Saves provider password in system keyring
      '''
      try:
          import keyring  # pylint: disable=import-error
          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 Falsf _save_password_in_keyring(credential_id, username, password):
      '''
      Saves provider password in system keyring
      '''
      try:
          import keyring  # pylint: disable=import-error
          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
docs: Saves provider password in system keyring