git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
calling aggregate manager for slice start/stop operations
[sfa.git]
/
geni
/
util
/
slices.py
diff --git
a/geni/util/slices.py
b/geni/util/slices.py
index
1ba2f95
..
b063eb7
100644
(file)
--- a/
geni/util/slices.py
+++ b/
geni/util/slices.py
@@
-268,9
+268,9
@@
class Slices(SimpleStorage):
def start_slice_smgr(self, hrn):
credential = self.api.getCredential()
def start_slice_smgr(self, hrn):
credential = self.api.getCredential()
- aggregates = Aggregates()
+ aggregates = Aggregates(
self.api
)
for aggregate in aggregates:
for aggregate in aggregates:
- aggre
e
gates[aggregate].start_slice(credential, hrn)
+ aggregates[aggregate].start_slice(credential, hrn)
return 1
return 1
@@
-293,7
+293,7
@@
class Slices(SimpleStorage):
def stop_slice_smgr(self, hrn):
credential = self.api.getCredential()
def stop_slice_smgr(self, hrn):
credential = self.api.getCredential()
- aggregates = Aggregates()
+ aggregates = Aggregates(
self.api
)
for aggregate in aggregates:
for aggregate in aggregates:
- aggregate[aggregate].stop_slice(credential, hrn)
+ aggregate
s
[aggregate].stop_slice(credential, hrn)