Raise an error if server flagged as local but should not

If the controller is not started with --local but the server ID
is local it's raise an error.
This commit is contained in:
Julien Duponchelle committed 2016-03-04 16:11:31 +01:00
1 parent aad69e9650
commit 4d77b2918e
5 files changed
+68 -13

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ class VMError(Exception):
def __init__(self, message, original_exception=None):
Exception.__init__(self, message)
super().__init__(message)
if isinstance(message, Exception):
message = str(message)
self._message = message