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

providers/hetzner: fix duplicate attribute prefix #1083

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

apricote
Copy link
Contributor

@apricote apricote commented Jun 4, 2024

The attributes generated for the hetzner provider had a duplicate prefix:

AFTERBURN_AFTERBURN_HETZNER_HOSTNAME=flatcar-test

Afterburn already adds the prefix itself in src/providers/mod.rs MetadataProvider.write_attributes(), so the additional prefix added in the hetzner provider was unnecessary.

This is a breaking change for the generated output, not sure how you want to handle this. I can also keep the previous output and just add the new correct output next to it.

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you add an entry to the release notes?

@apricote
Copy link
Contributor Author

Thanks! Can you add an entry to the release notes?

Done!

@jlebon jlebon enabled auto-merge June 12, 2024 18:44
@apricote
Copy link
Contributor Author

Not a rust expert, but the CI failures seem unrelated to this PR.

error[E0282]: type annotations needed for `Box<_>`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.

@prestist
Copy link
Contributor

@apricote yeah; its something with the CI. I am taking a look.

@prestist
Copy link
Contributor

prestist commented Jun 14, 2024

@apricote Once this lands #1084 you will need to rebase and CI should pass.

@prestist
Copy link
Contributor

Ok if you do a re-base it should now be good @apricote

The attributes generated for the hetzner provider had a duplicate
prefix:

    AFTERBURN_AFTERBURN_HETZNER_HOSTNAME=flatcar-test

Afterburn already adds the prefix itself in src/providers/mod.rs
`MetadataProvider.write_attributes()`, so the additional prefix added in
the hetzner provider was unnecessary.

Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
auto-merge was automatically disabled June 19, 2024 16:04

Head branch was pushed to by a user without write access

@apricote
Copy link
Contributor Author

Rebased 👍

@jlebon jlebon enabled auto-merge June 19, 2024 19:19
@jlebon jlebon merged commit 547c950 into coreos:main Jun 19, 2024
9 checks passed
@apricote apricote deleted the hetzner-fix-prefix branch June 20, 2024 05:31
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

Successfully merging this pull request may close these issues.

3 participants