Commit 7072d16f authored by ibuler's avatar ibuler

Update install.py

parent f2dda35f
...@@ -80,8 +80,8 @@ class PreSetup(object): ...@@ -80,8 +80,8 @@ class PreSetup(object):
self.ip = '' self.ip = ''
self.key = ''.join(random.choice(string.ascii_lowercase + string.digits) \ self.key = ''.join(random.choice(string.ascii_lowercase + string.digits) \
for _ in range(16)) for _ in range(16))
self.dist = platform.linux_distribution(supported_dists=['system'])[0].lower() self.dist = platform.linux_distribution()[0].lower()
self.version = platform.linux_distribution(supported_dists=['system'])[1] self.version = platform.linux_distribution()[1]
@property @property
def _is_redhat(self): def _is_redhat(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment