Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Non-existent auth causes traceback #15

Closed
chambridge opened this issue Jun 16, 2017 · 0 comments
Closed

Non-existent auth causes traceback #15

chambridge opened this issue Jun 16, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@chambridge
Copy link

candlepin#9

If we try to add/edit a profile and give it an auth that doesn't exist, we
get an exception, and then the config is busted.

Profile f11-bogus-multiauth-multiport edited
[adrian@alikins rho]$ rho dumpconfig
Traceback (most recent call last):
File "/home/adrian/src/rho/bin/rho", line 22, in
CLI().main()
File "/home/adrian/src/rho/src/rho/cli.py", line 95, in main
cmd.main()
File "/home/adrian/src/rho/src/rho/clicommands.py", line 133, in main
self.config = self._read_config(self.options.config, self.passphrase)
File "/home/adrian/src/rho/src/rho/clicommands.py", line 98, in _read_config
return config.ConfigBuilder().build_config(confstr)
File "/home/adrian/src/rho/src/rho/config.py", line 289, in build_config
config = Config(auths=creds, profiles=profiles)
File "/home/adrian/src/rho/src/rho/config.py", line 93, in init
self.add_profile(profile)
File "/home/adrian/src/rho/src/rho/config.py", line 134, in add_profile
c)
rho.config.ConfigError: No such credentials: rsa_key
@chambridge chambridge added the bug label Jun 16, 2017
@chambridge chambridge self-assigned this Jun 26, 2017
chambridge added a commit that referenced this issue Jun 26, 2017
noahl added a commit that referenced this issue Jun 27, 2017
Fix various bugs where checks were missing for the presence of data/p…
@chambridge chambridge added this to the Sprint 1 milestone Jun 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant