]> scripts.mit.edu Git - wizard.git/commitdiff
Fail if user is not signed up for mysql service.
authorEdward Z. Yang <ezyang@mit.edu>
Sun, 25 Apr 2010 00:13:30 +0000 (20:13 -0400)
committerEdward Z. Yang <ezyang@mit.edu>
Sun, 25 Apr 2010 00:13:30 +0000 (20:13 -0400)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/install/__init__.py

index 8a9401199d345521fd238c16a62d0c082b35c9c7..685121d51b63ca325083ae48199ec4c41acbcad9 100644 (file)
@@ -157,6 +157,8 @@ class ScriptsMysqlStrategy(Strategy):
             self._triplet = shell.eval("/mit/scripts/sql/bin/get-password").split()
         except shell.CallError:
             raise StrategyFailed
+        if len(self._triplet) != 3:
+            raise StrategyFailed
         self._username = os.getenv('USER')
         if self._username is None:
             raise StrategyFailed