X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/35568d9967fd7b5296c9caf93593ee34e82a05b0..cae84bf926ab97cc5e57aeac6b13b9087653117e:/code/validation.py?ds=inline diff --git a/code/validation.py b/code/validation.py index 29cb310..5018ca3 100755 --- a/code/validation.py +++ b/code/validation.py @@ -25,7 +25,7 @@ class Validate: if strict: if name is None: raise InvalidInput('name', name, "You must provide a machine name.") - if description is None: + if description is None or description.strip() == '': raise InvalidInput('description', description, "You must provide a description.") if memory is None: raise InvalidInput('memory', memory, "You must provide a memory size.")