mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-20 14:04:30 +01: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:
@@ -216,7 +216,7 @@ mod tests {
|
||||
let tmpdir = Builder::new().prefix("pid").tempdir().unwrap();
|
||||
|
||||
let ns_pid = Namespace::new(&logger)
|
||||
.as_pid()
|
||||
.get_pid()
|
||||
.set_root_dir(tmpdir.path().to_str().unwrap())
|
||||
.setup();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user