Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

fix bug for 'and' & 'or' mode #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version ?= 0.5.0
version ?= 0.5.1
image_name ?= mesosphere/marathon-autoscaler
full_image_name ?= $(image_name):v$(version)

Expand Down
5 changes: 3 additions & 2 deletions autoscaler/modes/scalebycpuormem.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ def __init__(self, api_client=None, agent_stats=None, app=None,
# Instantiate the CPU/Memory mode classes
for idx, mode in enumerate(list(self.mode_map.keys())):
self.mode_map[mode] = self.mode_map[mode](
api_client,
app,
api_client=self.api_client,
app=self.app,
agent_stats=self.agent_stats,
dimension={
'min': dimension['min'][idx],
'max': dimension['max'][idx]
Expand Down
5 changes: 3 additions & 2 deletions autoscaler/modes/scalecpuandmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def __init__(self, api_client=None, agent_stats=None, app=None,
# Instantiate the CPU/Memory mode classes
for idx, mode in enumerate(list(self.mode_map.keys())):
self.mode_map[mode] = self.mode_map[mode](
api_client,
app,
api_client=self.api_client,
app=self.app,
agent_stats=self.agent_stats,
dimension={
'min': dimension['min'][idx],
'max': dimension['max'][idx]
Expand Down