Browse Source

Ensure Object change lists are sorted during to_primitive

This ensures our tests succeed with a random PYTHONHASHSEED value.

Change-Id: I798e0b91f2e515562188b5d14cd7ce2055bd64fb
Partial-Bug: 1348818
changes/86/111886/1
Kiall Mac Innes 8 years ago
parent
commit
6cf1c81a60
  1. 2
      designate/objects/base.py

2
designate/objects/base.py

@ -126,7 +126,7 @@ class DesignateObject(object):
return {
'designate_object.name': class_name,
'designate_object.data': data,
'designate_object.changes': list(self._obj_changes),
'designate_object.changes': sorted(self._obj_changes),
'designate_object.original_values': dict(self._obj_original_values)
}

Loading…
Cancel
Save