Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group profiles__APPEND/PREPEND not working? #454

Open
andreymal opened this issue Jan 21, 2025 · 0 comments
Open

group profiles__APPEND/PREPEND not working? #454

andreymal opened this issue Jan 21, 2025 · 0 comments

Comments

@andreymal
Copy link

I'm trying to use config v2 to split my profiles into multiple files and combine them to one group using profiles__APPEND. A simplified example of what I'm trying to do:

# profiles.yaml
version: "2"

groups:
  all:
    profiles:
      - profile1

includes:
  - profile*.yaml

profiles:
  profile1: {backup: {source: .}}
# profile2.yaml
version: "2"

groups:
  all:
    profiles__APPEND:
      - profile2

profiles:
  profile2: {backup: {source: .}}

According to the JSON schema, both files are valid and profiles__APPEND is a valid key.

However:

$ resticprofile profiles
2025/01/21 21:23:00 using configuration file: profiles.yaml

Profiles available (name, sections, description):
  profile1:  (backup)  
  profile2:  (backup)  

Groups available (name, profiles, description):
  all:  [profile1]

profile2 is present but not added to the all group.

I tried different versions back to 0.16.1 but this configuration doesn't work with any version I tested.

Is this even supposed to work? Or is this just a mistake in the JSON schema?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant