You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/smardigo/pmci/script/load-tenant-data.groovy

6 lines
211 B
Groovy

def parameters = [:]
parameters["id"] = tenant.id
def tenants = datasources.query("data-entity-tenants").scope(contextScopeId, contextScopeTag).parameters(parameters).list();
!!tenants[0] ? tenants[0] : tenant