ethtool: fix wrong assignment for global variable
In python, variables that are only referenced inside a function
are implicitly global. And if a variable is assigned a new value
anywhere within the function's body, it's assumed to be a local.
so ethtool_save_params() doesn't truely store the ethtool status
into global variable 'pretest_status'. we can simply make use of
by 'global' to fix the problem, but it's not a good method.
Signed-off-by: NWei Jiangang <weijg.fnst@cn.fujitsu.com>
Showing
想要评论请 注册 或 登录