Skip to content

Allow to easily reference block parameters in the same block #28

Description

@bandesz

Introduce a self keyword, which always resolves to the current block:

server {
  private_ip = "10.0.1.2"
  hostname = "web-1
  
  hostname_uppercase := str_upper(self.hostname)
}

Alternative names: this, current

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions