Skip to content

Commit

Permalink
fix(proxmoxve): expose attributes function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
arcln committed Jan 9, 2024
1 parent 6e2224c commit 6d90e90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/providers/proxmoxve/configdrive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ use crate::{network, providers::MetadataProvider};
use anyhow::{Context, Result};
use openssh_keys::PublicKey;
use slog_scope::error;
use std::path::{Path, PathBuf};
use std::{
collections::HashMap,
path::{Path, PathBuf},
};

#[derive(Debug)]
pub struct ProxmoxVEConfigDrive {
Expand Down Expand Up @@ -37,6 +40,10 @@ impl ProxmoxVEConfigDrive {
}

impl MetadataProvider for ProxmoxVEConfigDrive {
fn attributes(&self) -> Result<HashMap<String, String>> {
self.config.attributes()
}

fn hostname(&self) -> Result<Option<String>> {
self.config.hostname()
}
Expand Down

0 comments on commit 6d90e90

Please sign in to comment.