~ubuntu-branches/ubuntu/wily/heat/wily

« back to all changes in this revision

Viewing changes to heat/engine/resources/openstack/heat/wait_condition_handle.py

  • Committer: Package Import Robot
  • Author(s): Corey Bryant
  • Date: 2015-09-08 15:52:07 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20150908155207-zi2r1rckyrevr5u7
Tags: 1:5.0.0~b3-0ubuntu1
* New upstream milestone for OpenStack Liberty.
* d/control: Align (build-)depends with upstream.
* d/p/fix-dummy-resource-missing.patch: Dropped. Fixed in milestone.
* d/p/move-extensions.patch: Dropped. Fixed in milestone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    }
66
66
 
67
67
    def handle_create(self):
68
 
        password = uuid.uuid4().hex
69
 
        self.data_set('password', password, True)
70
 
        self._create_user()
71
 
        self.resource_id_set(self._get_user_id())
 
68
        self.password = uuid.uuid4().hex
 
69
        super(HeatWaitConditionHandle, self).handle_create()
72
70
        # FIXME(shardy): The assumption here is that token expiry > timeout
73
71
        # but we probably need a check here to fail fast if that's not true
74
72
        # Also need to implement an update property, such that the handle
89
87
        return rsrc_ep.replace(self.context.tenant_id,
90
88
                               self.stack.stack_user_project_id)
91
89
 
92
 
    def handle_delete(self):
93
 
        self._delete_user()
94
 
 
95
 
    @property
96
 
    def password(self):
97
 
        return self.data().get('password')
98
 
 
99
90
    def _resolve_attribute(self, key):
100
91
        if self.resource_id:
101
92
            if key == self.TOKEN: