Created
March 10, 2013 08:45
-
-
Save vincentvdk/5127677 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for system in systems: | |
if system.get('name') == host: | |
#print system['name'] | |
sys_id = system.get('id') | |
#id2 = int(idken) | |
print sys_id | |
#get the system name and print it | |
print "%s" % (system.get('name')) | |
#basechan = client.system.listBaseChannels(session, int(sys_id)) | |
basechan = client.channel.software.listSystemChannels(session, int(sys_id)) | |
#print basechan | |
#b = basechan[0] | |
#b = basechan[0] | |
chans = [item['channel_label'] for item in basechan] | |
print chans | |
#print b | |
#for key, value in b.items(): | |
# if key == 'CURRENT_BASE' and value == 1: | |
# print "%s" % (b['LABEL']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment