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:
102b85f
)
plaggregate fix
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 4 Apr 2013 09:34:07 +0000
(11:34 +0200)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 4 Apr 2013 09:34:07 +0000
(11:34 +0200)
sfa/planetlab/plaggregate.py
patch
|
blob
|
history
diff --git
a/sfa/planetlab/plaggregate.py
b/sfa/planetlab/plaggregate.py
index
b5e8073
..
d85043e
100644
(file)
--- a/
sfa/planetlab/plaggregate.py
+++ b/
sfa/planetlab/plaggregate.py
@@
-311,6
+311,9
@@
class PlAggregate:
op_status = 'geni_unknown'
else:
allocation_status = 'geni_unallocated'
+ else:
+ allocation_status = 'geni_unallocated'
+ op_status = 'geni_failed'
# required fields
geni_sliver = {'geni_sliver_urn': rspec_node['sliver_id'],
'geni_expires': rspec_node['expires'],
@@
-322,9
+325,6
@@
class PlAggregate:
def get_leases(self, slice=None, options={}):
- if slice_xrn and not slice:
- return []
-
now = int(time.time())
filter={}
filter.update({'clip':now})