def replace_ssh_keys(input_dict, original_string, secret_name):
    """
        Replace each SSH key path entry (original_string) in the top level of
        a dict with the secret.
    """
    changed = False
    for k in input_dict:
        if input_dict[k] == original_string:
            input_dict[k] = {'get_secret': secret_name}
            changed = True
    return changed