Skip to content

Commit

Permalink
(appengine) adds boolean to load balancer server group model (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach authored Feb 1, 2017
1 parent bded561 commit 4234f5d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,21 @@ class AppEngineLoadBalancer implements LoadBalancer, Serializable {

def detachedInstances = serverGroup.isDisabled() ? serverGroup.instances?.collect { it.name } ?: [] : []

new LoadBalancerServerGroup(
new AppEngineLoadBalancerServerGroup(
name: serverGroup.name,
region: serverGroup.region,
isDisabled: serverGroup.isDisabled(),
allowsGradualTrafficMigration: serverGroup.allowsGradualTrafficMigration,
instances: instances as Set,
detachedInstances: detachedInstances as Set
)
} as Set
null
}

static class AppEngineLoadBalancerServerGroup extends LoadBalancerServerGroup {
Boolean allowsGradualTrafficMigration
}
}

@AutoClone
Expand Down

0 comments on commit 4234f5d

Please sign in to comment.