def lvresize(size, lvpath):
 ret = {}
 cmd = ['lvresize', '-L', str(size), lvpath]
 cmd_ret = __salt__['cmd.run_all'](cmd, python_shell=False)
 if (cmd_ret['retcode'] != 0):
  return {}
 return ret

def lvresize ( size , lvpath ) : ret = { } cmd = [ 'lvresize' , '-L' , str ( size ) , lvpath ] cmd_ret = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) if ( cmd_ret [ 'retcode' ] != 0 ) : return { } return ret
return information about the logical volume(s) cli examples: .