mirror of
git://github.com/lxc/lxc
synced 2025-09-01 01:39:40 +00:00
confile: cleanup set_config_net_script_down()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -1059,8 +1059,9 @@ static int set_config_net_script_down(const char *key, const char *value,
|
|||||||
if (!netdev)
|
if (!netdev)
|
||||||
return ret_errno(EINVAL);
|
return ret_errno(EINVAL);
|
||||||
|
|
||||||
|
clr_config_net_script_down(key, lxc_conf, data);
|
||||||
if (lxc_config_value_empty(value))
|
if (lxc_config_value_empty(value))
|
||||||
return clr_config_net_script_down(key, lxc_conf, data);
|
return 0;
|
||||||
|
|
||||||
return set_config_string_item(&netdev->downscript, value);
|
return set_config_string_item(&netdev->downscript, value);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user