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

non existent auth causes traceback #9

Open
jmrodri opened this issue Oct 26, 2009 · 0 comments
Open

non existent auth causes traceback #9

jmrodri opened this issue Oct 26, 2009 · 0 comments

Comments

@jmrodri
Copy link
Contributor

jmrodri commented Oct 26, 2009

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

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

No branches or pull requests

1 participant