From: Steven Valdez Date: Sun, 23 Jun 2013 07:59:26 +0000 (-0400) Subject: Add the updating of the xvm-contacts description with last updated date. X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/update-contacts.git/commitdiff_plain/8497f3105ec87e9d7e53822172a169cf6f364aca?hp=4281f1747e4c15010a9e6ab786d267cf715bb92e Add the updating of the xvm-contacts description with last updated date. --- diff --git a/update-contacts b/update-contacts index 03087a2..22edcc4 100755 --- a/update-contacts +++ b/update-contacts @@ -9,6 +9,7 @@ removing as necessary. import socket import subprocess +import datetime from invirt import database from invirt import remctl @@ -31,7 +32,8 @@ def stripDomain(c): return c def updateContacts(contacts): - p = subprocess.Popen(['blanche', '-f', '-', 'xvm-contacts'], + now = datetime.datetime.now() + p = subprocess.Popen(['blanche', '-f', '-', '-D', "\"All contacts for XVM Machines (%02d/%2d/%2d)\"" % (now.month, now.day, now.year), 'xvm-contacts'], stdin=subprocess.PIPE, )