pycloudlib.gce.util module

Common GCE utils.

pycloudlib.gce.util.get_credentials(credentials_path)[source]

Get GCE account credentials.

Try service account credentials first. If those fail, try the environment

pycloudlib.gce.util.raise_on_error(response)[source]

Look for errors in response and raise if found.