-
Notifications
You must be signed in to change notification settings - Fork 186
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
KeyError: 'apiurl_aliases' #1439
Comments
Also happens adding aliases:
|
Can confirm.
|
This appears to affect any attempt to write/change any config values in [$apiurl] sections, but not the [general] section $ osc config general build-jobs 1 but $ osc config $APIURL --changepassword |
I get the same error when running Broke for me when I updated from osc-1.2.0-372.1.noarch to osc-1.4.3-383.1.noarch |
Same with copypac (my.private.api.url is edited in there for my privacy and is a real URL which does work with other OSC commands):
I get the same thing if I use the alias or fully specify the URL. I tried the patch mentioned that hopefully fixes this and indeed I didn't get the same error, but it still didn't work:
Which might be a different issue and need a different case logged, or might be a failure of the fix, I can't say for sure. Edit: I was able to get the copypac to work by cd'ing to the local copy of the project, and specifying the alias (rather than the URL) there, with the fix from #1440 in place:
So it looks like #1440 fixes this and my copypac syntax was wrong. |
$ osc config https://api.opensuse.org --delete aliases
Traceback (most recent call last):
File "/usr/bin/osc", line 11, in
load_entry_point('osc==1.4.3', 'console_scripts', 'osc')()
File "/usr/lib/python3.6/site-packages/osc/babysitter.py", line 226, in main
sys.exit(run(commandline.OscMainCommand()))
File "/usr/lib/python3.6/site-packages/osc/babysitter.py", line 69, in run
prg.main(argv)
File "/usr/lib/python3.6/site-packages/osc/commandline.py", line 545, in main
cmd.run(args)
File "/usr/lib/python3.6/site-packages/osc/commandline.py", line 241, in run
cmd.run(args)
File "/usr/lib/python3.6/site-packages/osc/commandline.py", line 489, in run
self.func(args.command, args, *args.positional_args)
File "/usr/lib/python3.6/site-packages/osc/commandline.py", line 9863, in do_config
opt, newval = conf.config_set_option(section, opt, ' '.join(val), delete=opts.delete, update=True, creds_mgr_descr=creds_mgr_descr)
File "/usr/lib/python3.6/site-packages/osc/conf.py", line 1620, in config_set_option
section = config['apiurl_aliases'].get(section, section)
File "/usr/lib/python3.6/site-packages/osc/conf.py", line 148, in getitem
return self.extra_fields[name]
KeyError: 'apiurl_aliases'
The text was updated successfully, but these errors were encountered: