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