diff --git a/hostd/src/main.rs b/hostd/src/main.rs index d0f8fcd..c9b7a65 100644 --- a/hostd/src/main.rs +++ b/hostd/src/main.rs @@ -1,7 +1,7 @@ use anyhow::Result; use internal::ipc::patagia::io_patagia_hostd::{ - Call_Apply, Call_Describe, Machine, VarlinkInterface, + Call_Apply, Call_Describe, Label, Machine, VarlinkInterface, }; const LISTEN_ADDRESS: &str = "unix:/tmp/patagia/io.patagia.hostd"; @@ -19,7 +19,16 @@ impl VarlinkInterface for PatagiaHostd { // FIXME: Do something useful let machine = Machine { machineId: "123456789".to_string(), - nodeLabels: None, + nodeLabels: Some(vec![ + Label { + key: "foo".to_string(), + value: "bar".to_string(), + }, + Label { + key: "baz".to_string(), + value: "quz".to_string(), + }, + ]), patagiaAgent: None, }; call.reply(machine) diff --git a/internal/Cargo.toml b/internal/Cargo.toml index 7a5bc4a..4bff095 100644 --- a/internal/Cargo.toml +++ b/internal/Cargo.toml @@ -12,6 +12,3 @@ varlink = "11.0.1" [build-dependencies] varlink_generator = "10.1.0" walkdir = "2.5.0" - -[package.metadata.cargo-machete] -ignored = ["serde"]