From 489ed4cab4410a2cc727a904bc53dfdd3b19e270 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Fri, 7 Sep 2012 14:55:54 +0200 Subject: [PATCH] Add a string representation for identifiers This makes debugging in unit tests a lot easier. Change-Id: I320cdf754e405377abfeb61496b017809d25d719 Signed-off-by: Zane Bitter --- heat/engine/identifier.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heat/engine/identifier.py b/heat/engine/identifier.py index 948a989a..61c93c03 100644 --- a/heat/engine/identifier.py +++ b/heat/engine/identifier.py @@ -113,3 +113,6 @@ class HeatIdentifier(collections.Mapping): def __iter__(self): return iter(self.FIELDS) + + def __repr__(self): + return repr(dict(self)) -- 2.45.2