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 585279 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 to catch invalid repos provided via rhua-manager cli
rhuaRepoCli.patch (text/plain), 2.22 KB, created by
wes hayutin
on 2012-05-17 17:27:17 UTC
(
hide
)
Description:
patch to catch invalid repos provided via rhua-manager cli
Filename:
MIME Type:
Creator:
wes hayutin
Created:
2012-05-17 17:27:17 UTC
Size:
2.22 KB
patch
obsolete
>diff --git a/rhui-2.0/tools/src/rhui/tools/render.py b/rhui-2.0/tools/src/rhui/tools/render.py >index 582d060..61fe2c8 100644 >--- a/rhui-2.0/tools/src/rhui/tools/render.py >+++ b/rhui-2.0/tools/src/rhui/tools/render.py >@@ -127,27 +127,29 @@ def display_repo_details(prompt, repo): > ''' > Displays detailed information about a single repository. > ''' >- >- if GROUP_RED_HAT in repo['groupid']: >- type = 'Red Hat' >- entitlement_path = None >+ if repo is None: >+ prompt.write('No repositories found') > else: >- type = 'Custom' >- if repo['notes'] is not None and ENTITLEMENT_PATH in repo['notes']: >- entitlement_path = repo['notes'][ENTITLEMENT_PATH] >- else: >+ if GROUP_RED_HAT in repo['groupid']: >+ type = 'Red Hat' > entitlement_path = None >- >- prompt.write('Name: %s' % repo['name']) >- prompt.write('Type: %s' % type) >- prompt.write('Relative Path: %s' % repo['relative_path']) >- if entitlement_path: >- prompt.write('Entitlement Path: %s' % entitlement_path) >- prompt.write('Package Count: %s' % repo['package_count']) >- >- if type == 'Red Hat': >- prompt.write('Last Sync: %s' % format_date(repo['last_sync'])) >- prompt.write('Next Sync: %s' % format_date(repo['next_scheduled_sync'])) >+ else: >+ type = 'Custom' >+ if repo['notes'] is not None and ENTITLEMENT_PATH in repo['notes']: >+ entitlement_path = repo['notes'][ENTITLEMENT_PATH] >+ else: >+ entitlement_path = None >+ >+ prompt.write('Name: %s' % repo['name']) >+ prompt.write('Type: %s' % type) >+ prompt.write('Relative Path: %s' % repo['relative_path']) >+ if entitlement_path: >+ prompt.write('Entitlement Path: %s' % entitlement_path) >+ prompt.write('Package Count: %s' % repo['package_count']) >+ >+ if type == 'Red Hat': >+ prompt.write('Last Sync: %s' % format_date(repo['last_sync'])) >+ prompt.write('Next Sync: %s' % format_date(repo['next_scheduled_sync'])) > > def format_date(date_str): > if date_str is None:
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