'Generate a stack identifier from the given stack name or ARN.
In the case of a stack name, the identifier will be looked up in the
engine over RPC.'

def _get_identity(self, con, stack_name):

    try:
        return dict(identifier.HeatIdentifier.from_arn(stack_name))
    except ValueError:
        return self.rpc_client.identify_stack(con, stack_name)
