Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 585293 Details for
Bug 822637
rhua-manager cli needs to catch invalid data
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for a cleaner message to users when an invalid repo is passed
rhuiCliPackages.path (text/plain), 941 bytes, created by
wes hayutin
on 2012-05-17 18:07:32 UTC
(
hide
)
Description:
patch for a cleaner message to users when an invalid repo is passed
Filename:
MIME Type:
Creator:
wes hayutin
Created:
2012-05-17 18:07:32 UTC
Size:
941 bytes
patch
obsolete
>diff --git a/rhui-2.0/tools/src/rhui/tools/commands/packages.py b/rhui-2.0/tools/src/rhui/tools/commands/packages.py >index ddd7345..fcd2852 100644 >--- a/rhui-2.0/tools/src/rhui/tools/commands/packages.py >+++ b/rhui-2.0/tools/src/rhui/tools/commands/packages.py >@@ -58,8 +58,10 @@ class PackagesSection(Section): > Lists all packages in a specific repository. > ''' > repo_id = kwargs['--repo_id'] >- >- all_packages = self.pulp.packages(repo_id) >- all_packages = sorted(all_packages, key=lambda p: p['filename']) >- for p in all_packages: >- self.prompt.write(p['filename']) >+ if self.pulp.repo(repo_id) is None: >+ print "invalid repo id" >+ else: >+ all_packages = self.pulp.packages(repo_id) >+ all_packages = sorted(all_packages, key=lambda p: p['filename']) >+ for p in all_packages: >+ self.prompt.write(p['filename'])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 822637
:
585279
| 585293