Project

Profile

Help

Issue #752

closed

Suggestion to add -v remains even if you use -v

Added by amacdona@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
2.11.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Description
When pulp-admin fails, it helpfully suggests that you include the -v flag for more information. However if you do, it continues to suggest the flag.

This isn't really a problem, but it is silly.

$ pulp-admin rpm repo list --details
+----------------------------------------------------------------------+
                            RPM Repositories
+----------------------------------------------------------------------+

An unexpected error has occurred. More information may be found using the -v
flag.

Why thank you, I think I will take that suggestion:

$ pulp-admin -v rpm repo list --details
+----------------------------------------------------------------------+
                            RPM Repositories
+----------------------------------------------------------------------+

2015-03-11 15:25:08,178 - ERROR - Client-side exception occurred
Traceback (most recent call last):
  File "/home/austin/devel/pulp/client_lib/pulp/client/extensions/core.py", line 474, in run
    exit_code = Cli.run(self, args)
  File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
    exit_code = command_or_section.execute(self.prompt, remaining_args)
  File "/home/austin/devel/pulp/client_lib/pulp/client/extensions/extensions.py", line 211, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/home/austin/devel/pulp/client_lib/pulp/client/commands/repo/cudl.py", line 339, in run
    self.display_repositories(**kwargs)
  File "/home/austin/devel/pulp/client_lib/pulp/client/commands/repo/cudl.py", line 370, in display_repositories
    repo_list = self.get_repositories(query_params, **kwargs)
  File "/home/austin/devel/pulp_rpm/extensions_admin/pulp_rpm/extensions/admin/repo_list.py", line 38, in get_repositories
    imp_config = r['importers'][0]['config']  # there can only be one importer
IndexError: list index out of range
An unexpected error has occurred. More information may be found using the -v
flag.

Also available in: Atom PDF