def METHOD_NAME(target, username):
    target_list = lst(targets())
    if target not in target_list:
        log.warning("You must configure the password to '@oracle:use_keyring' "
                    "prior to setting the value.")
        raise ValueError("%s must be one of %r" % (target, target_list))
    keyring = get_keyring()
    keyring.set_password(target, username, getpass.getpass())
    print("Password set for %s, %s" % (target, username))