client: properly complete new-owner

with remote Authids, not local Userids.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2020-11-06 14:44:44 +01:00
committed by Wolfgang Bumiller
parent f0609851fc
commit 0224c3c273
2 changed files with 30 additions and 2 deletions

View File

@ -76,6 +76,7 @@ pub struct UserWithTokens {
#[serde(skip_serializing_if="Option::is_none")]
pub email: Option<String>,
#[serde(skip_serializing_if="Vec::is_empty")]
#[serde(default="Vec::new")]
pub tokens: Vec<user::ApiToken>,
}