mirror of
https://github.com/clearlinux/WALinuxAgent.git
synced 2026-09-03 20:31:31 +00:00
add more pre check.
This commit is contained in:
@@ -811,7 +811,8 @@ class AbstractDistro(object):
|
||||
Log("Error: NdDriverVersion not found.")
|
||||
return None
|
||||
else:
|
||||
ndDriverVersion = ndDriverVersion.split('.')[0]
|
||||
if ndDriverVersion.find('.') != -1:
|
||||
ndDriverVersion = ndDriverVersion.split('.')[0]
|
||||
return ndDriverVersion
|
||||
except Exception as e:
|
||||
errMsg = 'Cannot update status: Failed to enable the extension with error: %s, stack trace: %s' % (str(e), traceback.format_exc())
|
||||
|
||||
Reference in New Issue
Block a user