Skip to content

Bad Zone can mess up getting GCE instance #180

Description

@muschellij2

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 expected

Created on 2021-09-01 by the reprex package (v2.0.0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions