MCPcopy Create free account
hub / github.com/apache/trafficserver / compare_settings

Function compare_settings

contrib/python/compare_records_config.py:52–64  ·  view source on GitHub ↗
(old, new)

Source from the content-addressed store, hash-verified

50
51
52def compare_settings(old, new):
53 for key in sorted(tuple(set(old) | set(new))):
54 if key not in old:
55 old[key] = "missing"
56 if key not in new:
57 new[key] = "missing"
58
59 for key in sorted(old):
60 if old[key].startswith('@') and old[key].endswith('@'):
61 # Skip predefined values
62 continue
63 if old[key] != new[key]:
64 print(f"{key} {old[key]} -> {new[key]}")
65
66
67if __name__ == '__main__':

Callers 1

Calls 1

setFunction · 0.85

Tested by

no test coverage detected