git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
for reservable nodes - granularity still hardwired in PLC/Leases
[plcapi.git]
/
PLC
/
Methods
/
GetSlivers.py
diff --git
a/PLC/Methods/GetSlivers.py
b/PLC/Methods/GetSlivers.py
index
ec1e83e
..
9f86615
100644
(file)
--- a/
PLC/Methods/GetSlivers.py
+++ b/
PLC/Methods/GetSlivers.py
@@
-324,6
+324,7
@@
class GetSlivers(Method):
'clip': (timestamp, timestamp+24*Duration.HOUR),
'-SORT': 't_from',
}) ]
+ granularity=Lease.granularity
return {
'timestamp': timestamp,
@@
-339,4
+340,5
@@
class GetSlivers(Method):
'hrn':hrn,
'reservation_policy': reservation_policy,
'leases':leases,
+ 'lease_granularity': granularity,
}