@error.context_aware
def vg_remove(vg_name):
 error.context(("Removing volume '%s'" % vg_name), logging.info)
 if (not vg_check(vg_name)):
  raise error.TestError(("Volume group '%s' could not be found" % vg_name))
 cmd = ('vgremove -f %s' % vg_name)
 result = utils.run(cmd)
 logging.info(result.stdout.rstrip())

@ error . context_aware def vg_remove ( vg_name ) : error . context ( ( "Removing volume '%s'" % vg_name ) , logging . info ) if ( not vg_check ( vg_name ) ) : raise error . TestError ( ( "Volume group '%s' could not be found" % vg_name ) ) cmd = ( 'vgremove -f %s' % vg_name ) result = utils . run ( cmd ) logging . info ( result . stdout . rstrip ( ) )
remove a volume group .