X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/35568d9967fd7b5296c9caf93593ee34e82a05b0..e277c0f673ccb26f9b75c36ef03ac3c5d0dacaf8:/code/validation.py 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.")