Merge pull request #121 from kx499/master

Added **kwargs to add_named_attribute call in add_attachment
pull/119/merge
Raphaël Vinot 2017-10-10 12:56:45 +02:00 committed by GitHub
commit 958f4f173a
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ class PyMISP(object):
encodedData = base64.b64encode(fileData).decode("utf-8") encodedData = base64.b64encode(fileData).decode("utf-8")
# Send it on its way # Send it on its way
return self.add_named_attribute(event, 'attachment', filename, category, to_ids, comment, distribution, proposal, data=encodedData) return self.add_named_attribute(event, 'attachment', filename, category, to_ids, comment, distribution, proposal, data=encodedData, **kwargs)
def add_regkey(self, event, regkey, rvalue=None, category='Artifacts dropped', to_ids=True, comment=None, distribution=None, proposal=False, **kwargs): def add_regkey(self, event, regkey, rvalue=None, category='Artifacts dropped', to_ids=True, comment=None, distribution=None, proposal=False, **kwargs):
if rvalue: if rvalue: