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

Fix error 500 in running 'meta attribute <prj>' #1491

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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'
Expand Down
Loading