Fix incorrect resource's information while describing
We can't get the resource'infos from db once the resource
is deleted. All information of a deleted resource come
from the initialization. So this change will modify some
infos when resource init:
1. set the action of resource to stack'action
2. set the created_time to stack's created_time
3. set the updated_time to stack's updated_time
Then the information will be reset for normal resources.
Reviewed: https:/ /review. fuel-infra. org/20416 ci/fuel- 7.0/2015. 1.0
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-
Commit: 0ad90080053d640 07436e9edc8a4fb c19cc7d0a7
Author: huangtianhua <email address hidden>
Date: Tue May 10 08:11:32 2016
Fix incorrect resource's information while describing
We can't get the resource'infos from db once the resource
is deleted. All information of a deleted resource come
from the initialization. So this change will modify some
infos when resource init:
1. set the action of resource to stack'action
2. set the created_time to stack's created_time
3. set the updated_time to stack's updated_time
Then the information will be reset for normal resources.
Change-Id: Iafdc99c572c5da b06bf1843842ed4 7554d6de128
Closes-Bug: #1557013