Fix validate_upload function in hooks_artifact.
when in_memory_proccessing param is true we want to ensure that upload will be executed in memory. Change-Id: Ifaa5fbd0444f3ff626ae806b2aa567151490a22e
This commit is contained in:
parent
dc1055f951
commit
0d8aad964c
|
@ -111,10 +111,10 @@ class HookChecker(base.BaseArtifact):
|
|||
@classmethod
|
||||
def validate_upload(cls, context, af, field_name, fd):
|
||||
if CONF.hooks_artifact.in_memory_processing:
|
||||
return cls._validate_upload_harddrive(
|
||||
return cls._validate_upload_inmemory(
|
||||
context, af, field_name, fd)
|
||||
else:
|
||||
return cls._validate_upload_inmemory(
|
||||
return cls._validate_upload_harddrive(
|
||||
context, af, field_name, fd)
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue