fix to make sd_hash more deterministic

This commit is contained in:
Lex Berezhny 2018-07-06 16:03:41 -04:00 committed by Jack Robison
parent 545451a829
commit edfc2c6124
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -73,7 +73,7 @@ class StreamDescriptorWriter(object):
pass pass
def create_descriptor(self, sd_info): def create_descriptor(self, sd_info):
return self._write_stream_descriptor(json.dumps(sd_info)) return self._write_stream_descriptor(json.dumps(sd_info, sort_keys=True))
def _write_stream_descriptor(self, raw_data): def _write_stream_descriptor(self, raw_data):
"""This method must be overridden by subclasses to write raw data to """This method must be overridden by subclasses to write raw data to