src/noos_tf/cli.py
def update(ctx, variable="", value="", workspace="", organisation=None, token=None):
    """Update variable in Terraform cloud."""
    organisation = organisation or os.getenv("TERRAFORM_USER")
    token = token or os.getenv("TERRAFORM_TOKEN")
    assert organisation is not None, "Missing Terraform Cloud organisation."
    assert token is not None, "Missing Terraform Cloud token."
    api.update_workspace_variable(organisation, workspace, token, variable, value)
    print(f"Updated Terraform {variable} for {workspace}")
Update variable in Terraform cloud.
Update variable in Terraform cloud.
Update variable in Terraform cloud .
def update(ctx, variable="", value="", workspace="", organisation=None, token=None):
    organisation = organisation or os.getenv("TERRAFORM_USER")
    token = token or os.getenv("TERRAFORM_TOKEN")
    assert organisation is not None, "Missing Terraform Cloud organisation."
    assert token is not None, "Missing Terraform Cloud token."
    api.update_workspace_variable(organisation, workspace, token, variable, value)
    print(f"Updated Terraform {variable} for {workspace}")
def update ( ctx , variable = "" , value = "" , workspace = "" , organisation = None , token = None ) : organisation = organisation or os . getenv ( "TERRAFORM_USER" ) token = token or os . getenv ( "TERRAFORM_TOKEN" ) assert organisation is not None , "Missing Terraform Cloud organisation." assert token is not None , "Missing Terraform Cloud token." api . update_workspace_variable ( organisation , workspace , token , variable , value ) print ( f"Updated Terraform {variable} for {workspace}" )
Update variable in Terraform cloud.
Update variable in Terraform cloud .
"""Update variable in Terraform cloud."""
ctx
variable
value
workspace
organisation
token