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

[BUG:] Thread panicked when config parameter not found. #37

Open
1 of 3 tasks
ByteOtter opened this issue Nov 8, 2023 · 0 comments
Open
1 of 3 tasks

[BUG:] Thread panicked when config parameter not found. #37

ByteOtter opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working configuration This issue is linked to the application configuration high-priority This needs to be done ASAP

Comments

@ByteOtter
Copy link
Member

Found an issue? Please let us know!

When loading the config file it appears that this block panickes when a config parameter cannot be found.

        let config_parameters: ConfigData = ConfigData {
            netbox_api_token: config_contents["netbox"]["netbox_uri"]
                .as_str()
                .unwrap()
                .trim()
                .to_string(),
            netbox_uri: config_contents["netbox"]["netbox_api_token"]
                .as_str()
                .unwrap()
                .trim()
                .to_string(),
            system_location: config_contents["system"]["system_location"]
                .as_str()
                .unwrap()
                .trim()
                .to_string(),
        };

Please tick the applicable box(es) regarding the kind of bug you found:

  • Broken feature
  • Wrong documentation
  • Broken dependency
@ByteOtter ByteOtter added bug Something isn't working high-priority This needs to be done ASAP configuration This issue is linked to the application configuration labels Nov 8, 2023
@ByteOtter ByteOtter added this to the Initial Release v0.1.0 milestone Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working configuration This issue is linked to the application configuration high-priority This needs to be done ASAP
Projects
None yet
Development

No branches or pull requests

1 participant