file_recv_max_size config is specified in megabyte

This commit is contained in:
Amir Pakdel 2013-12-09 10:50:52 -05:00
parent c934a9bd36
commit 49141cf042
2 changed files with 4 additions and 3 deletions

View file

@ -189,8 +189,9 @@
#file_recv: False
# Set a hard-limit on the size of the files that can be pushed to the master.
# Default: 100MB
#file_recv_max_size: 1024*1024*100
# It will be interpreted as megabytes.
# Default: 100
#file_recv_max_size: 100
##### Master Module Management #####
##########################################

View file

@ -1154,7 +1154,7 @@ class AESFuncs(object):
return False
if not salt.utils.verify.valid_id(self.opts, load['id']):
return False
file_recv_max_size = self.opts.get('file_recv_max_size', 1024*1024*100)
file_recv_max_size = 1024*1024 * self.opts.get('file_recv_max_size', 100)
if len(load['data']) + load.get('loc', 0) > file_recv_max_size:
log.error(
'Exceeding file_recv_max_size limit: {0}'.format(