Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 541560 Details for
Bug 760714
RFE: spacecmd: activationkeys_details: child-channel should be sorted
Home
New
Search
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.rh90 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]
sort printed output
0001-print-child-channels-and-packages-sorted.patch (text/plain), 1.54 KB, created by
Joerg Steffens
on 2011-12-06 20:14:40 UTC
(
hide
)
Description:
sort printed output
Filename:
MIME Type:
Creator:
Joerg Steffens
Created:
2011-12-06 20:14:40 UTC
Size:
1.54 KB
patch
obsolete
>From cd6f9077bb6f63fe38175d64a8a98a305d37a380 Mon Sep 17 00:00:00 2001 >From: Joerg Steffens <joerg.steffens@dass-it.de> >Date: Tue, 6 Dec 2011 20:21:15 +0100 >Subject: [PATCH 1/3] print child channels and packages sorted, to be > comparable to other activation keys > >--- > spacecmd/src/lib/activationkey.py | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/spacecmd/src/lib/activationkey.py b/spacecmd/src/lib/activationkey.py >index aad3208..14bb762 100644 >--- a/spacecmd/src/lib/activationkey.py >+++ b/spacecmd/src/lib/activationkey.py >@@ -313,7 +313,7 @@ def do_activationkey_listchildchannels(self, args): > details = self.client.activationkey.getDetails(self.session, key) > > if len(details.get('child_channel_labels')): >- print '\n'.join(details.get('child_channel_labels')) >+ print '\n'.join(sorted(details.get('child_channel_labels'))) > > #################### > >@@ -777,7 +777,7 @@ def do_activationkey_details(self, args): > print '-----------------' > print details.get('base_channel_label') > >- for channel in details.get('child_channel_labels'): >+ for channel in sorted(details.get('child_channel_labels')): > print ' |-- %s' % channel > > print >@@ -799,7 +799,7 @@ def do_activationkey_details(self, args): > print > print 'Packages' > print '--------' >- for package in details.get('packages'): >+ for package in sorted(details.get('packages')): > name = package.get('name') > > if package.get('arch'): >-- >1.7.7 >
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 760714
: 541560