~hazmat/pyjuju/security-groups

« back to all changes in this revision

Viewing changes to ensemble/state/hook.py

  • Committer: kapil.thangavelu at canonical
  • Date: 2011-08-04 18:19:33 UTC
  • mfrom: (284.1.3 security-connection)
  • Revision ID: kapil.thangavelu@canonical.com-20110804181933-ei5v1dpzpsd1ov5s
Merged security-connection into security-groups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
        the context to the current state of the underlying settings
239
239
        node.  It supports externally modified or deleted values that
240
240
        are unchanged on the context, to be preserved.
 
241
 
 
242
        The change items to the relation YAMLState is returned (this
 
243
        could also be done with config settings, but given their
 
244
        usage model, doesn't seem to be worth logging).
241
245
        """
242
246
        rel_state = yield self._setup_relation_state()
243
 
        yield rel_state.write()
244
 
 
 
247
        relation_setting_changes = yield rel_state.write()
245
248
        yield super(RelationHookContext, self).flush()
 
249
        returnValue(relation_setting_changes)
 
250