in client.py [0:0]
def post_change(self,dn,attributes,previous_attributes, change_type):
print(f"Publishing change-set for {dn}")
js = {
'dn': stringify(dn),
'change_type': change_type,
'old_attributes': stringify(previous_attributes),
'new_attributes': stringify(attributes),
}
try:
requests.put(self.pubsub_url, json = js)
except Exception as e:
print(f"Could not push payload: {e}")
return True