X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/70f60ee3aa8c2416ef0b72bb89341af2975420a5..6af249bac425a21c0ec2505b50444d60a454d8f4:/code/main.py?ds=sidebyside diff --git a/code/main.py b/code/main.py index cffa809..3a89eea 100755 --- a/code/main.py +++ b/code/main.py @@ -121,7 +121,7 @@ class Defaults: if max_memory is not None: self.memory = min(self.memory, max_memory) if max_disk is not None: - self.max_disk = min(self.disk, max_disk) + self.disk = min(self.disk, max_disk) for key in kws: setattr(self, key, kws[key]) @@ -681,7 +681,7 @@ def getUser(environ): if environ.get('AUTH_TYPE') == 'Negotiate': # Convert the krb5 principal into a krb4 username - if not user.endswith('@%s' % config.authn[0].realm): + if not user.endswith('@%s' % config.kerberos.realm): return else: return user.split('@')[0].replace('/', '.')