From 60d8f92b3c25b2769a805382b082cf90ceb62626 Mon Sep 17 00:00:00 2001
From: Pieter Avonts <pieter.avonts@syntigo.com>
Date: Fri, 20 Sep 2013 12:58:43 +0200
Subject: [PATCH] changed deprecated channel_label attribute

---
 library/packaging/rhn_channel | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/library/packaging/rhn_channel b/library/packaging/rhn_channel
index 8b044a57450..9c99360ee78 100644
--- a/library/packaging/rhn_channel
+++ b/library/packaging/rhn_channel
@@ -89,7 +89,10 @@ def unsubscribe_channels(channels, client, session, sysname, sys_id):
 
 def base_channels(client, session, sys_id):
     basechan = client.channel.software.listSystemChannels(session, sys_id)
-    chans = [item['channel_label'] for item in basechan]
+    try:
+        chans = [item['label'] for item in basechan]
+    except KeyError:
+        chans = [item['channel_label'] for item in basechan]
     return chans
 
 # ------------------------------------------------------- #