Skip to content

Commit 362fffa

Browse files
committed
fixed - cli did not create ns with --force if one existed before invocation
1 parent f90b7f5 commit 362fffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netns.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if fs.exists(_netnsRunFile) then
111111
_exec("ip link delete", _netnsRunConfig.vehId)
112112
end
113113
fs.remove(_netnsRunFile)
114-
os.exit(0)
114+
if _options.remove then os.exit(0) end
115115
else
116116
_error("Found runtime info about netns '" .. _netnsId .. "'.")
117117
_info("Remove existing runtime info or run with '--force' to automatically cleanup.")

0 commit comments

Comments
 (0)