mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 00:02:01 +00:00
agent: config: Remove supports_seccomp
supports_seccomp is never used, so throws a clippy error Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
0bd36a63d9
commit
a131eec5c1
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
//
|
//
|
||||||
use crate::rpc;
|
|
||||||
use anyhow::{anyhow, bail, ensure, Context, Result};
|
use anyhow::{anyhow, bail, ensure, Context, Result};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use std::env;
|
use std::env;
|
||||||
@ -140,7 +140,6 @@ pub struct AgentConfig {
|
|||||||
pub cgroup_no_v1: String,
|
pub cgroup_no_v1: String,
|
||||||
pub unified_cgroup_hierarchy: bool,
|
pub unified_cgroup_hierarchy: bool,
|
||||||
pub tracing: bool,
|
pub tracing: bool,
|
||||||
pub supports_seccomp: bool,
|
|
||||||
pub https_proxy: String,
|
pub https_proxy: String,
|
||||||
pub no_proxy: String,
|
pub no_proxy: String,
|
||||||
pub guest_components_rest_api: GuestComponentsFeatures,
|
pub guest_components_rest_api: GuestComponentsFeatures,
|
||||||
@ -276,7 +275,6 @@ impl Default for AgentConfig {
|
|||||||
cgroup_no_v1: String::from(""),
|
cgroup_no_v1: String::from(""),
|
||||||
unified_cgroup_hierarchy: false,
|
unified_cgroup_hierarchy: false,
|
||||||
tracing: false,
|
tracing: false,
|
||||||
supports_seccomp: rpc::have_seccomp(),
|
|
||||||
https_proxy: String::from(""),
|
https_proxy: String::from(""),
|
||||||
no_proxy: String::from(""),
|
no_proxy: String::from(""),
|
||||||
guest_components_rest_api: GuestComponentsFeatures::default(),
|
guest_components_rest_api: GuestComponentsFeatures::default(),
|
||||||
|
Loading…
Reference in New Issue
Block a user