mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +00:00
agent: Wrong pid method used
no method named `as_pid` found for struct `namespace::Namespace` in the current scope --> src/namespace.rs:219:14 | 34 | pub struct Namespace { | -------------------- method `as_pid` not found for this ... 219 | .as_pid() | ^^^^^^ method not found in `namespace::Namespace` Switch to get_pid() Fixes #1698 Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
parent
afe4df0449
commit
3d33250eac
@ -216,7 +216,7 @@ mod tests {
|
|||||||
let tmpdir = Builder::new().prefix("pid").tempdir().unwrap();
|
let tmpdir = Builder::new().prefix("pid").tempdir().unwrap();
|
||||||
|
|
||||||
let ns_pid = Namespace::new(&logger)
|
let ns_pid = Namespace::new(&logger)
|
||||||
.as_pid()
|
.get_pid()
|
||||||
.set_root_dir(tmpdir.path().to_str().unwrap())
|
.set_root_dir(tmpdir.path().to_str().unwrap())
|
||||||
.setup();
|
.setup();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user