def start_slice_smgr(self, hrn):
credential = self.api.getCredential()
- aggregates = Aggregates()
+ aggregates = Aggregates(self.api)
for aggregate in aggregates:
- aggreegates[aggregate].start_slice(credential, hrn)
+ aggregates[aggregate].start_slice(credential, hrn)
return 1
def stop_slice_smgr(self, hrn):
credential = self.api.getCredential()
- aggregates = Aggregates()
+ aggregates = Aggregates(self.api)
for aggregate in aggregates:
- aggregate[aggregate].stop_slice(credential, hrn)
+ aggregates[aggregate].stop_slice(credential, hrn)