def _run_varnishadm(cmd, params=(), **kwargs):
 cmd = ['varnishadm', cmd]
 cmd.extend([param for param in params if (param is not None)])
 log.debug('Executing: {0}'.format(' '.join(cmd)))
 return __salt__['cmd.run_all'](cmd, python_shell=False, **kwargs)

def _run_varnishadm ( cmd , params = ( ) , ** kwargs ) : cmd = [ 'varnishadm' , cmd ] cmd . extend ( [ param for param in params if ( param is not None ) ] ) log . debug ( 'Executing: {0}' . format ( ' ' . join ( cmd ) ) ) return __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False , ** kwargs )
execute varnishadm command return the output of the command cmd the command to run in varnishadm params any additional args to add to the command line kwargs additional options to pass to the salt cmd .