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:
Idan Narotzki 2017-07-24 13:10:22 +00:00
parent dc1055f951
commit 0d8aad964c
1 changed files with 2 additions and 2 deletions

View File

@ -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