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

File check - bitops.config.yaml #310

Closed
PhillypHenning opened this issue Oct 3, 2022 · 0 comments · Fixed by #311 or #314
Closed

File check - bitops.config.yaml #310

PhillypHenning opened this issue Oct 3, 2022 · 0 comments · Fixed by #311 or #314
Labels
bug 🪲 Something isn't working

Comments

@PhillypHenning
Copy link
Contributor

Describe the bug
If the bitops.config.yaml file is missing from an process folder, then it will error with the below error. Though this error does have enough information to explain what is needed, it looks messy and should be updated to use the same error catching as the rest of the application.

To Reproduce
Steps to reproduce the behavior:

  1. Run Bitops (KitchenSink) against a Operations Repo that doesn't contain and bitops.config.yaml files

Expected behavior
A clear and concise description of what needs to be updated / added

Screenshots

~#~#~#~CONVERTING:     
         PLUGIN CONFIGURATION FILE PATH:    [/tmp/tmp_dl4gm1w/Dev/cloudformation/bitops.config.yaml]        
         PLUGIN SCHEMA FILE PATH:           [/opt/bitops/scripts/plugins/cloudformation/bitops.schema.yaml]        


2022-10-03 17:48:19,645 root         ERROR REQUIRED FILE NOT FOUND: [/tmp/tmp_dl4gm1w/Dev/cloudformation/bitops.config.yaml]
Traceback (most recent call last):
  File "/opt/bitops/scripts/plugins.py", line 47, in <module>
    Deploy_Plugins()
  File "/opt/bitops/scripts/plugins/deploy_plugins.py", line 186, in Deploy_Plugins
    cli_config_list, options_config_list = Get_Config_List(opsrepo_config_file, plugin_schema_file)
  File "/opt/bitops/scripts/plugins/utilities.py", line 186, in Get_Config_List
    config = DefaultMunch.fromDict(config_yaml, None)
UnboundLocalError: local variable 'config_yaml' referenced before assignment

System info

  • BitOps image tag used: KitchenSink
  • Hardware: N/A
  • Tool: N/A
arm4b added a commit that referenced this issue Oct 3, 2022
@arm4b arm4b added the bug 🪲 Something isn't working label Oct 3, 2022
arm4b added a commit that referenced this issue Oct 12, 2022
Exit with error when bitops.config.yaml not found to fix #310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
2 participants