Merge "Prevent showing 'show' too early"

This commit is contained in:
Jenkins 2014-12-11 09:14:27 +00:00 committed by Gerrit Code Review
commit 90c1189084

View File

@ -11,6 +11,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import collections
from oslo.utils import timeutils
from heat.common.i18n import _
@ -129,7 +131,9 @@ def format_resource_attributes(resource, with_attr=None):
resolver = resource.attributes
if 'show' in resolver.keys():
resolver = resolver['show']
show_attr = resolver['show']
if isinstance(show_attr, collections.Mapping):
resolver = show_attr
if not with_attr:
with_attr = []