Skip to content
Snippets Groups Projects
Commit 9e30b8a4 authored by Seblu's avatar Seblu
Browse files

Fix downloading of all payloads to compute md5 when it's not needed

parent 8273db6b
No related branches found
No related tags found
No related merge requests found
......@@ -453,7 +453,8 @@ class Payload(object):
setattr(self, attr, None)
# set all named param
for kwarg in kwargs:
if hasattr(self, kwarg):
# do not use hasattr which user getattr and so call md5 checksum...
if kwarg in self.legit_attr:
setattr(self, kwarg, kwargs[kwarg])
def __getattr__(self, name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment