~gnuoy/charms/trusty/percona-cluster/sstpasswd2

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/peerstorage/__init__.py

  • Committer: Liam Young
  • Date: 2015-05-13 10:11:03 UTC
  • Revision ID: liam.young@canonical.com-20150513101103-i70nvo0ucehj9m4b
Charm helper sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    exc_list = exc_list if exc_list else []
74
74
    peerdb_settings = peer_retrieve('-', relation_name=relation_name)
75
75
    matched = {}
 
76
    if peerdb_settings is None:
 
77
        return matched
76
78
    for k, v in peerdb_settings.items():
77
79
        full_prefix = prefix + delimiter
78
80
        if k.startswith(full_prefix):