summaryrefslogtreecommitdiff
path: root/src/Process.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-04-23 20:22:28 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-04-23 20:27:15 +0200
commit2e9ebc0e64ef2febb61669a8fdec3e84dd4b0c63 (patch)
tree2b46c44f81f3f1477ff548d0b93d2d9183fc2a19 /src/Process.hs
parent7153a26626498d9790ddf73f6a275cc93f847c66 (diff)
Add network namespace in constructor of corresponding type
Diffstat (limited to 'src/Process.hs')
-rw-r--r--src/Process.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Process.hs b/src/Process.hs
index 09745fb..fc8a719 100644
--- a/src/Process.hs
+++ b/src/Process.hs
@@ -89,7 +89,7 @@ lineReadingLoop process h act =
spawnOn :: Either Network Node -> ProcName -> Maybe Signal -> String -> TestRun Process
spawnOn target pname killWith cmd = do
- let netns = either netnsName netnsName target
+ let netns = either getNetns getNetns target
let prefix = T.unpack $ "ip netns exec \"" <> textNetnsName netns <> "\" "
(Just hin, Just hout, Just herr, handle) <- liftIO $ createProcess (shell $ prefix ++ cmd)
{ std_in = CreatePipe, std_out = CreatePipe, std_err = CreatePipe