~veebers/juju-ci-tools/adding-rc-upgrade-test

« back to all changes in this revision

Viewing changes to assess_user_grant_revoke.py

  • Committer: Christopher Lee
  • Date: 2016-09-21 07:21:46 UTC
  • mfrom: (1597.2.12 trunk)
  • Revision ID: chris.lee@canonical.com-20160921072146-awjfo0hh8wynhvbv
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
def list_shares(client):
84
84
    """Test listing users' shares"""
85
 
    model_data = json.loads(client.get_juju_output('show-model', '--format',
86
 
                                                   'json', include_e=False))
87
 
    share_list = model_data['default']['users']
 
85
    model_data = json.loads(
 
86
        client.get_juju_output(
 
87
            'show-model', '--format', 'json', include_e=False))
 
88
    share_list = model_data[client.model_name]['users']
88
89
    for key, value in share_list.iteritems():
89
90
        value.pop("last-connection", None)
90
91
    return share_list