Skip to content

platform default to linux #26

@bdelv

Description

@bdelv

When used indirectly (like when creating a project using terraform-google-project-factory), the platform variable of the gcloud module is not accessible, so its default to linux is problematic if using a mac (yes, docker is better, but still :) ).

some ideas:

  • skip_download could be renamed to something like skip_download_if_gcloud_found and defaulted to true
  • there could be an attempt to detect the OS if the platform is empty (default "") with something like:
if [[ $(uname -s) == "Darwin" ]]; then echo "darwin" ; else echo "linux" ; fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2high priority issuesenhancementNew feature or requesttriagedScoped and ready for work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions