~ubuntu-branches/ubuntu/trusty/python-keystoneclient/trusty-proposed

« back to all changes in this revision

Viewing changes to keystoneclient/generic/shell.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-26 14:01:05 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120326140105-c9ddds5lbchco3ia
Tags: 2012.1~rc1-0ubuntu1
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
            print versions['message']
48
48
        for key, version in versions.iteritems():
49
49
            if key != 'message':
50
 
                print "    - supports version %s (%s) here %s" % \
51
 
                    (version['id'], version['status'], version['url'])
 
50
                print ("    - supports version %s (%s) here %s" %
 
51
                       (version['id'], version['status'], version['url']))
52
52
                extensions = cs.discover_extensions(version['url'])
53
53
                if extensions:
54
54
                    for key, extension in extensions.iteritems():
55
55
                        if key != 'message':
56
 
                            print "        - and %s: %s" % \
57
 
                                (key, extension)
 
56
                            print ("        - and %s: %s" %
 
57
                                   (key, extension))
58
58
    else:
59
59
        print "No Keystone-compatible endpoint found"