Leaving the pv around doesn't keep us from redeploying on
that device because we also wipefs, but explicitly destroying
it makes the output read better.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
logger.info("Destroying volume group %s because --destroy was given", vg_name)
terminal.write("Destroying volume group %s because --destroy was given" % vg_name)
api.remove_vg(vg_name)
+ logger.info("Destroying physical volume %s because --destroy was given", device)
+ terminal.write("Destroying physical volume %s because --destroy was given" % device)
+ api.remove_pv(device)
wipefs(path)
zap_data(path)