def vgextend(vgname, devices):
 if ((not vgname) or (not devices)):
  return 'Error: vgname and device(s) are both required'
 if isinstance(devices, six.string_types):
  devices = devices.split(',')
 cmd = ['vgextend', vgname]
 for device in devices:
  cmd.append(device)
 out = __salt__['cmd.run'](cmd, python_shell=False).splitlines()
 vgdata = {'Output from vgextend': out[0].strip()}
 return vgdata

def vgextend ( vgname , devices ) : if ( ( not vgname ) or ( not devices ) ) : return 'Error: vgname and device(s) are both required' if isinstance ( devices , six . string_types ) : devices = devices . split ( ',' ) cmd = [ 'vgextend' , vgname ] for device in devices : cmd . append ( device ) out = __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) . splitlines ( ) vgdata = { 'Output from vgextend' : out [ 0 ] . strip ( ) } return vgdata
add physical volumes to an lvm volume group cli examples: .