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

Convert three register flags to type flagx.StringFile #57

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

nkinkade
Copy link
Contributor

@nkinkade nkinkade commented Nov 26, 2024

We are working on having M-Lab managed VMs leverage the Autojoin API in order to get a dynamic DNS name. The value of several of the flags to the register command are already present on the local filesystem of our VMs in the /var/local/metadata directory. Namely, external IPv4 and IPv6 addresses and the IATA code for the site. This PR coverts the -iata, -ipv4 and -ipv6 flags to be of type flagx.StringFile, which allow us to specify a path to a file instead of a static string value for these flags.


This change is Reviewable

This will be used to assist in having M-Lab managed VMs use the register
command, where today several of the flag values are located in
/var/local/metadata.
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 12035672610

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.92%

Totals Coverage Status
Change from base Build 11945787321: 0.0%
Covered Lines: 1191
Relevant Lines: 1204

💛 - Coveralls

Copy link
Contributor

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Thank you!

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@nkinkade nkinkade merged commit 3964a7b into main Nov 26, 2024
8 checks passed
@nkinkade nkinkade deleted the sandbox-kinkade branch November 26, 2024 17:44
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