projects
/
invirt/scripts/update-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4281f17
)
Add the updating of the xvm-contacts description with last updated date.
author
Steven Valdez
<dvorak42@mit.edu>
Sun, 23 Jun 2013 07:59:26 +0000
(
03:59
-0400)
committer
Steven Valdez
<dvorak42@mit.edu>
Sun, 23 Jun 2013 07:59:26 +0000
(
03:59
-0400)
update-contacts
patch
|
blob
|
history
diff --git
a/update-contacts
b/update-contacts
index
03087a2
..
22edcc4
100755
(executable)
--- 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,
)