~heut2008/charms/trusty/glance/user-config-flags

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/hookenv.py

  • Committer: Liam Young
  • Date: 2014-08-26 13:26:49 UTC
  • Revision ID: liam.young@canonical.com-20140826132649-sia3wap8ktgiu1yi
Sync charm helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        raise
286
286
 
287
287
 
288
 
def relation_set(relation_id=None, relation_settings={}, **kwargs):
 
288
def relation_set(relation_id=None, relation_settings=None, **kwargs):
289
289
    """Set relation information for the current unit"""
 
290
    relation_settings = relation_settings if relation_settings else {}
290
291
    relation_cmd_line = ['relation-set']
291
292
    if relation_id is not None:
292
293
        relation_cmd_line.extend(('-r', relation_id))