'Returns the files for an existing stack.
:param cnxt: RPC context
:param stack_identity: identifies the stack
:rtype: dict'

@context.request_context
def get_files(self, cnxt, stack_identity):

    s = self._get_stack(cnxt, stack_identity, show_deleted=True)
    template = templatem.Template.load(cnxt, s.raw_template_id, s.raw_template)
    return dict(template.files)
