|
|
|
@ -365,15 +365,7 @@ class VariableOsInstallDevFrom(Variable):
|
|
|
|
|
"""
|
|
|
|
|
Root device of previous installed os
|
|
|
|
|
"""
|
|
|
|
|
def get(self):
|
|
|
|
|
"""Get from calculate2.env by default"""
|
|
|
|
|
try:
|
|
|
|
|
config = cl_template.iniParser('/etc/calculate/calculate2.env')
|
|
|
|
|
val = config.getVar('install','os_install_dev_from')
|
|
|
|
|
return val.encode('utf-8')
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
return ""
|
|
|
|
|
value = ""
|
|
|
|
|
|
|
|
|
|
def set(self,value):
|
|
|
|
|
"""
|
|
|
|
|