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
10 changes: 8 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from sys import version
from sys import version_info
from utils.ColorUtils import *

if float(version[0:3]) < 3.6:
# Check Python major version
if version_info[0] != 3:
print(color.FAIL+'Python 3 is required!'+color.ENDC)
exit()

# Check Python minor version
if version_info[1] < 6:
print(color.FAIL+'Python 3.6 or above required!'+color.ENDC)
exit()

Expand Down
2 changes: 1 addition & 1 deletion scheduler/Scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@ def MaxFullPlacement(self, containerIDs):
maxFullHost = max(hostIPSs)
decision.append((cid, maxFullHost[1]))
if len(hostIPSs) > 1:
hostIPSs.remove(leastFullHost)
hostIPSs.remove(maxFullHost)
return decision