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

Anchor merge key is reported as "Unused key <<" #507

Open
richardkraus-adesso opened this issue Jan 25, 2024 · 0 comments
Open

Anchor merge key is reported as "Unused key <<" #507

richardkraus-adesso opened this issue Jan 25, 2024 · 0 comments

Comments

@richardkraus-adesso
Copy link

Using Anchors in Butane works fine, but when using a merge key a warning at $.passwd.users.1.<<, line 11 col 7: Unused key << is shown when compiling the following config (this also happens for other variants):

podman run --rm -i quay.io/coreos/butane:latest > /dev/null << EOF
variant: flatcar
version: 1.1.0
passwd:
  users:
    - &nologin-user
      name: test1
      uid: 1000
      shell: /usr/bin/nologin
      no_create_home: true
      no_log_init: true
    - << : *nologin-user
      name: test2
      uid: 1001
EOF

This does not break any functionality (at least that Im aware of), but I just find it a little annoying..

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