Commit 2ce2287e authored by Kristian Feldsam's avatar Kristian Feldsam

Removed forgoten prints and added marks to verbose output

Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <feldsam@gmail.com>
parent 2ff33949
......@@ -36,9 +36,6 @@ datastores = functions.prepare_datastores(one, args)
all_images = functions.prepare_images(one, args)
images = functions.filter_images(all_images, datastores, args)
print datastores
print images
# connect and login to 3PAR
from drivers import _3par
_3par.login()
......@@ -51,6 +48,10 @@ for image_key in images:
if datastore.TM_MAD != '3par':
continue
# mark start of backup in verbose output
if args.verbose:
print '#============================================================'
# set info abut backup start to image template
one.image.update(image.ID, 'BACKUP_IN_PROGRESS=YES BACKUP_FINISHED_UNIX=--- BACKUP_FINISHED_HUMAN=--- BACKUP_STARTED_UNIX=%d BACKUP_STARTED_HUMAN="%s"' % (int(time.time()), datetime.datetime.now().ctime()), 1)
......@@ -131,5 +132,9 @@ for image_key in images:
# set info abut backup start to image template
one.image.update(image.ID, 'BACKUP_IN_PROGRESS=NO BACKUP_FINISHED_UNIX=%d BACKUP_FINISHED_HUMAN="%s"' % (int(time.time()), datetime.datetime.now().ctime()), 1)
# mark end of backup in verbose output
if args.verbose:
print '#============================================================'
# disconnect form 3PAR
_3par.logout()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment