~negronjl/charms/precise/mysql/mysql-file-permissions

« back to all changes in this revision

Viewing changes to hooks/shared_db_relations.py

  • Committer: Adam Gandelman
  • Date: 2013-07-23 22:59:11 UTC
  • mfrom: (102.1.1 mysql)
  • Revision ID: adamg@canonical.com-20130723225911-zwvqely3zmcbu5tx
Merge juju-core compat. fix from James Page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
                    configure_db(databases[db]['hostname'],
127
127
                                 databases[db]['database'],
128
128
                                 databases[db]['username'])
129
 
        utils.relation_set(**return_data)
 
129
        if len(return_data) > 0:
 
130
            utils.relation_set(**return_data)
130
131
        if not cluster.is_clustered():
131
132
            utils.relation_set(db_host=local_hostname)
132
133
        else: