From 1874b4d5c309e060b3bac76a64af4d0895242544 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sun, 13 May 2012 23:58:37 +0200 Subject: [PATCH] set max_slices to 2 by default as sfa_admin has no means to set that yet --- sfa/planetlab/pldriver.py | 3 +++ 1 file changed, 3 insertions(+) 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'] -- 2.47.0