Skip to content

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

@bandesz

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

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