git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda6681
)
PL Leases: check slice_xrn and slice args in get_leases
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Mon, 1 Oct 2012 07:31:51 +0000
(09:31 +0200)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Mon, 1 Oct 2012 07:31:51 +0000
(09:31 +0200)
sfa/planetlab/plaggregate.py
patch
|
blob
|
history
diff --git
a/sfa/planetlab/plaggregate.py
b/sfa/planetlab/plaggregate.py
index
b3ae459
..
a16bf67
100644
(file)
--- a/
sfa/planetlab/plaggregate.py
+++ b/
sfa/planetlab/plaggregate.py
@@
-259,6
+259,9
@@
class PlAggregate:
def get_leases(self, slice_xrn=None, slice=None, options={}):
+ if slice_xrn and not slice:
+ return []
+
now = int(time.time())
filter={}
filter.update({'clip':now})