Update install.py

pull/251/head
ibuler 2016-05-31 19:25:10 +08:00
parent f2dda35f28
commit 7072d16f00
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class PreSetup(object):
self.ip = ''
self.key = ''.join(random.choice(string.ascii_lowercase + string.digits) \
for _ in range(16))
self.dist = platform.linux_distribution(supported_dists=['system'])[0].lower()
self.version = platform.linux_distribution(supported_dists=['system'])[1]
self.dist = platform.linux_distribution()[0].lower()
self.version = platform.linux_distribution()[1]
@property
def _is_redhat(self):