def set_parameter(name, parameter, value, path=None):
 if (not exists(name, path=path)):
  return None
 cmd = 'lxc-cgroup'
 if path:
  cmd += ' -P {0}'.format(pipes.quote(path))
 cmd += ' -n {0} {1} {2}'.format(name, parameter, value)
 ret = __salt__['cmd.run_all'](cmd, python_shell=False)
 if (ret['retcode'] != 0):
  return False
 else:
  return True

def set_parameter ( name , parameter , value , path = None ) : if ( not exists ( name , path = path ) ) : return None cmd = 'lxc-cgroup' if path : cmd += ' -P {0}' . format ( pipes . quote ( path ) ) cmd += ' -n {0} {1} {2}' . format ( name , parameter , value ) ret = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) if ( ret [ 'retcode' ] != 0 ) : return False else : return True
allows setting parameters with 10m = 10* 1024 * 1024 and so on .