From 0165692e62a5e7e009b80d78c8a6099e29a4d8a7 Mon Sep 17 00:00:00 2001
From: Ian Wienand <iwienand@redhat.com>
Date: Wed, 26 Sep 2018 07:33:10 +1000
Subject: [PATCH] Use OrderedDict for object tracking

This makes iterating over the dict consistent on all python versions,
which is important if we're extracting them for a contents list or
similar.

Change-Id: I1a23bfc8fd032dd545cc48302ef469006b1f7a1e
---
 zuul_sphinx/zuul.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zuul_sphinx/zuul.py b/zuul_sphinx/zuul.py
index 7fb3800..c9dbf01 100644
--- a/zuul_sphinx/zuul.py
+++ b/zuul_sphinx/zuul.py
@@ -615,7 +615,7 @@ class ZuulDomain(Domain):
         'layout': None,
         'layout_path': None,
         'role_paths': None,
-        'objects': {},
+        'objects': OrderedDict(),
     }  # type: Dict[str, Dict]
 
     def resolve_xref(self, env, fromdocname, builder, type, target,