Add the updating of the xvm-contacts description with last updated date.
authorSteven Valdez <dvorak42@mit.edu>
Sun, 23 Jun 2013 07:59:26 +0000 (03:59 -0400)
committerSteven Valdez <dvorak42@mit.edu>
Sun, 23 Jun 2013 07:59:26 +0000 (03:59 -0400)
update-contacts

index 03087a2..22edcc4 100755 (executable)
@@ -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,
                          )