don't need write if we are not writing (#2256)

This commit is contained in:
James Hodgkinson 2023-10-27 13:34:53 +10:00 committed by GitHub
parent 7dc18e4f9e
commit 208d7c9932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ impl PersonOpt {
}
}
PersonOpt::Get(aopt) => {
let client = aopt.copt.to_client(OpType::Write).await;
let client = aopt.copt.to_client(OpType::Read).await;
match client
.idm_person_account_get(aopt.aopts.account_id.as_str())
.await

View file

@ -20,7 +20,7 @@ impl RecycleOpt {
}
}
RecycleOpt::Get(nopt) => {
let client = nopt.copt.to_client(OpType::Write).await;
let client = nopt.copt.to_client(OpType::Read).await;
match client.recycle_bin_get(nopt.name.as_str()).await {
Ok(Some(e)) => println!("{}", e),
Ok(None) => println!("No matching entries"),