From 7072d16f009ad50b4246196847f4af5483d2d7a9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 31 May 2016 19:25:10 +0800 Subject: [PATCH] Update install.py --- install/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.py b/install/install.py index 9bdfe976b..6b71fd17f 100755 --- a/install/install.py +++ b/install/install.py @@ -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):