Describe the bug
I accidentally sent a bad zone and gce_get_instance didn't fail. This affects gce_vm in the error catching. It didn't cause an error. It errors only when you go to show the object:
token=gargle::credentials_gce()
googleAuthR::gar_auth(token=token, cache=FALSE)
#> ℹ 2021-09-01 23:08:03 > Setting client.id from options(googleAuthR.client_id)x=googleComputeEngineR::gce_get_instance("blah", project="MYPROJECT",
"us-east4-c#/bin/bash")
x#> ==Google Compute Engine Instance==#> #> Name: us-east4-c#> Created: 1969-12-31 16:00:00#> Error in basename(x$machineType): a character vector argument expectedCreated on 2021-09-01 by the reprex package (v2.0.0)
Describe the bug
I accidentally sent a bad zone and
gce_get_instancedidn't fail. This affectsgce_vmin the error catching. It didn't cause an error. It errors only when you go to show the object:Created on 2021-09-01 by the reprex package (v2.0.0)