Skip to content
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 container_transform/chronos.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def emit_port_mappings(self, port_mappings):
in port_mappings]

def ingest_memory(self, memory):
return memory << 20
return int(memory) << 20

def emit_memory(self, memory):
mem_in_mb = memory >> 20
Expand Down
2 changes: 1 addition & 1 deletion container_transform/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def emit_containers(self, containers, verbose=True):

output = {
'kind': 'Deployment',
'apiVersion': 'extensions/v1beta1',
'apiVersion': 'apps/v1',
'metadata': {
'name': None,
'namespace': 'default',
Expand Down
2 changes: 1 addition & 1 deletion container_transform/marathon.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def emit_port_mappings(self, port_mappings):
in port_mappings]

def ingest_memory(self, memory):
return memory << 20
return int(memory) << 20

def emit_memory(self, memory):
mem_in_mb = memory >> 20
Expand Down