~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to hooks/neutron_api_context.py

  • Committer: Liam Young
  • Date: 2014-06-18 16:48:38 UTC
  • Revision ID: liam.young@canonical.com-20140618164838-771ydz1x42wrwu3j
more tests, more coverage

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        ctxt['verbose'] = config('verbose')
43
43
        ctxt['debug'] = config('debug')
44
44
        for rid in relation_ids('neutron-api'):
 
45
            print "rid"
45
46
            for unit in related_units(rid):
 
47
                print "unit"
46
48
                ctxt['nova_url'] = relation_get(attribute='nova_url',
47
49
                                                rid=rid,
48
50
                                                unit=unit)
49
51
                if ctxt['nova_url']:
 
52
                    print "Ive set nova_url"
50
53
                    return ctxt
 
54
        print "Ive not set nova_url"
51
55
        return ctxt