Make the exception string a little more useful

This partial helps bug #1119883

Change-Id: I247ab39406bcc608c0d66a8140dc198b93491ac1
Remove unused imports from repo in preperation for pyflakes

Lots of unused imports

Fixes: Bug #1131275

Change-Id: Iacb1d02173b0ec0e0dc81aff84ca6e29e60e2934
Signed-off-by: Steven Dake <sdake@redhat.com>
Gate on certain pyflakes failures

To prevent recent gating problems from typos, an
import not used and redefinition of function problems in
the source code have become gating.

Fixes: Bug #1131275
Change-Id: I7011f3ac5940afc70c38758e67a2222a66e625c3
Signed-off-by: Steven Dake <sdake@redhat.com>
Merge "Make the exception string a little more useful"
Do a metadata refresh after an explicit metadata write.

if we have a template with (logically) the following:
instance2:
   metadata
     GetAtt waitcond.data

waitcond:

when the waitcond is fired, it updates the metadata but it needs a call
to update the references in "instance2's" metadata.

bug #1135229
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Change-Id: I1a6af9112ba100b17075063f59165b448d6a11f4