]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/restore.py
Properly register salt values as random.
[wizard.git] / wizard / command / restore.py
index eae157f3b63beebc9444c8195c7abdd4a39f1594..4410611766758a1ff8983704a1016617ca105112 100644 (file)
@@ -6,6 +6,8 @@ from wizard import command, deploy, shell
 
 def main(argv, baton):
     options, args = parse_args(argv, baton)
+    d = deploy.ProductionCopy(".")
+    d.verify()
     backups = ".scripts/backups"
     if not args:
         if not os.path.exists(backups):
@@ -16,6 +18,8 @@ def main(argv, baton):
         for d in reversed(sorted(os.listdir(backups))):
             if ".bak" in d:
                 continue
+            if d.startswith("."):
+                continue
             if os.listdir(os.path.join(backups, d)):
                 print d
             else: