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

Use regions_dataset path for apply_smf #1000

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

jmpesp
Copy link
Contributor

@jmpesp jmpesp commented Oct 13, 2023

apply_smf's dataset argument is meant to be for the regions dataset,
not the specific region dataset.

Additionally, panic if regions_dataset.path() returns Err: the agent
requires a valid regions dataset and path to work.

Fixes #999

`apply_smf`'s `dataset` argument is meant to be for the regions dataset,
not the specific region dataset.

Additionally, panic if regions_dataset.path() returns Err: the agent
requires a valid regions dataset and path to work.
@jmpesp jmpesp requested a review from leftwo October 13, 2023 17:43
let regions_dataset_path = match regions_dataset.path() {
Ok(regions_dataset_path) => regions_dataset_path,
Err(e) => {
panic!(
Copy link
Contributor

Choose a reason for hiding this comment

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

So, this will panic right at the start if the specific regions dataset path does not
exist before we even begin then, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right

@jmpesp jmpesp merged commit 657d985 into oxidecomputer:main Oct 13, 2023
18 checks passed
@jmpesp jmpesp deleted the regions_dataset_path branch October 13, 2023 18:55
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.

Downstairs config/directory property has region id twice
2 participants