~fo0bar/turku/turku-agent-encoding

« back to all changes in this revision

Viewing changes to turku_agent/ping.py

  • Committer: Ryan Finnie
  • Date: 2019-04-22 01:39:55 UTC
  • Revision ID: ryan.finnie@canonical.com-20190422013955-etj7ppyk9kq8kc7r
Fix Python 3 .values conversion with --restore

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
                print('        %s' % source_name)
142
142
        print()
143
143
        if len(sources_by_storage) == 1:
144
 
            storage = list(sources_by_storage.values())[0].values()[0]['storage']
 
144
            storage = list(list(sources_by_storage.values())[0].values())[0]['storage']
145
145
        elif args.restore_storage:
146
146
            if args.restore_storage in sources_by_storage:
147
147
                storage = sources_by_storage[args.restore_storage]['storage']