nicgrayson / terraform-provider-marathon

a Terraform (http://terraform.io) provider for interacting with Marathon (https://mesosphere.github.io/marathon/)
MIT License
59 stars 24 forks source link

Change parameter struct to allow multiple use of the same option #27

Closed tuier closed 8 years ago

tuier commented 8 years ago

The current format of the provider doesn't allow to use multiple time the same option, it can be useful for some docker option (log-opt).

Syntax change: Old:

parameters {
   hostname = "a.corp.org"
}

New:

parameters {
  parameter {
    key = "hostname"
    value = "a.corp.org"
  }
}
banno-autobot commented 8 years ago

Can one of the admins verify this patch?

lamdor commented 8 years ago

@tuier Ah, I see what you mean For multiple parameters of the same key. That makes sense.

lamdor commented 8 years ago

@tuier Thanks for the patch!