~brad-marshall/charms/trusty/heat/add-nrpe-checks

« back to all changes in this revision

Viewing changes to hooks/heat_relations.py

  • Committer: yolanda.robla at canonical
  • Date: 2013-12-04 17:04:42 UTC
  • Revision ID: yolanda.robla@canonical.com-20131204170442-j1p6t1azf0zu390o
using pwgen for keystone authkey
added more unit tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    config,
20
20
    charm_dir,
21
21
    log,
22
 
    relation_ids,
23
22
    relation_set,
24
23
    open_port,
25
24
    unit_get
155
154
    CONFIGS.write_all()
156
155
 
157
156
 
158
 
@hooks.hook('upgrade-charm')
159
 
def upgrade_charm():
160
 
    for r_id in relation_ids('amqp'):
161
 
        amqp_joined(relation_id=r_id)
162
 
 
163
 
 
164
157
def main():
165
158
    try:
166
159
        hooks.execute(sys.argv)