From: Thierry Parmentelat Date: Sun, 13 May 2012 21:58:37 +0000 (+0200) Subject: set max_slices to 2 by default as sfa_admin has no means to set that yet X-Git-Tag: sfa-2.1-7~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1874b4d5c309e060b3bac76a64af4d0895242544;p=sfa.git set max_slices to 2 by default as sfa_admin has no means to set that yet --- diff --git a/sfa/planetlab/pldriver.py b/sfa/planetlab/pldriver.py index 0fb4fc37..76f54da9 100644 --- a/sfa/planetlab/pldriver.py +++ b/sfa/planetlab/pldriver.py @@ -71,6 +71,9 @@ class PlDriver (Driver): if type == 'authority': sites = self.shell.GetSites([pl_record['login_base']]) if not sites: + # xxx when a site gets registered through SFA we need to set its max_slices + if 'max_slices' not in pl_record: + pl_record['max_slices']=2 pointer = self.shell.AddSite(pl_record) else: pointer = sites[0]['site_id']