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

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

    s = self._get_stack(cnxt, stack_identity, show_deleted=True)
    return s.raw_template.environment
