Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error deleteing a client #49
Trying to delete a client and all it's data from GRR. Sync=False is trying to be passed to the DeleteSubject function but there is no sync argument for that function.
In : token = access_control.ACLToken(username="Me", reason="Removing test clients")
In : aff4.FACTORY.Delete(rdfvalue.ClientURN("C.ebb1a9185cd7b5e3 "))
DEBUG:2014-11-04 20:10:46,311 aff4:730] Removing aff4:/C.ebb1a9185cd7b5e3
TypeError Traceback (most recent call last)
/usr/lib/python2.7/dist-packages/grr/lib/aff4.pyc in Delete(self, urn, token, limit)
TypeError: DeleteSubject() got an unexpected keyword argument 'sync'
Thanks this is a bug in the data store implementations. The Mongo datastore takes this parameter, but mysql and sqlite do not. They should just discard it (since they are already synchronized).
You can just fix it but adding the sync=False parameter to the implementation you are using (either sqlite or mysql).