From dcef7fab23d3dd794167920b3aa405ddd2343f20 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 19 Feb 2024 16:09:12 +0100 Subject: [PATCH] Fix error 500 in running 'meta attribute ' --- osc/commandline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 4608dc9b47..6159ccdac3 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1744,9 +1744,9 @@ def do_token(self, subcmd, opts, *args): @cmdln.option('-a', '--attribute', metavar='ATTRIBUTE', help='affect only a given attribute') - @cmdln.option('--attribute-defaults', action='store_true', + @cmdln.option('--attribute-defaults', action='store_true', default=None, help='include defined attribute defaults') - @cmdln.option('--attribute-project', action='store_true', + @cmdln.option('--attribute-project', action='store_true', default=None, help='include project values, if missing in packages ') @cmdln.option('--blame', action='store_true', help='show author and time of each line') @@ -4446,7 +4446,7 @@ def do_branch(self, subcmd, opts, *args): if not exists and (srcprj != self._process_project_name(args[0]) or srcpkg != args[1]): try: root = ET.fromstring(b''.join(show_attribute_meta(apiurl, args[0], None, None, - conf.config['maintained_update_project_attribute'], False, False))) + conf.config['maintained_update_project_attribute'], None, None))) # this might raise an AttributeError uproject = root.find('attribute').find('value').text print('\nNote: The branch has been created from the configured update project: %s'