svn path=/trunk/packages/invirt-remote/; revision=2438
lv_path = '/dev/xenvg/%s' % lv
try:
lv_path = '/dev/xenvg/%s' % lv
try:
+ # If the LV name doesn't start with old_, we probably
+ # don't actually want to be deleting it.
+ #
+ # Put it in the try block because we still want to delete
+ # the state file.
+ if not lv.startswith('old_'):
+ continue
+
syslog.syslog(syslog.LOG_INFO, "Cleaning up LV '%s'" % lv_path)
# In a perfect world, this should be erroring out with
syslog.syslog(syslog.LOG_INFO, "Cleaning up LV '%s'" % lv_path)
# In a perfect world, this should be erroring out with