def vg_check(vg_name):
 cmd = ('vgdisplay %s' % vg_name)
 try:
  utils.run(cmd)
  logging.debug('Provided volume group exists: %s', vg_name)
  return True
 except error.CmdError:
  return False

def vg_check ( vg_name ) : cmd = ( 'vgdisplay %s' % vg_name ) try : utils . run ( cmd ) logging . debug ( 'Provided volume group exists: %s' , vg_name ) return True except error . CmdError : return False
check whether provided volume group exists .