mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use constant for task runtime value
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a5495f289a
commit
2b7d34977e
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func TestServicePlugin(t *testing.T) {
|
||||||
|
|
||||||
func makePlugin(repo, name string, constraints []string) func(*swarmtypes.Service) {
|
func makePlugin(repo, name string, constraints []string) func(*swarmtypes.Service) {
|
||||||
return func(s *swarmtypes.Service) {
|
return func(s *swarmtypes.Service) {
|
||||||
s.Spec.TaskTemplate.Runtime = "plugin"
|
s.Spec.TaskTemplate.Runtime = swarmtypes.RuntimePlugin
|
||||||
s.Spec.TaskTemplate.PluginSpec = &runtime.PluginSpec{
|
s.Spec.TaskTemplate.PluginSpec = &runtime.PluginSpec{
|
||||||
Name: name,
|
Name: name,
|
||||||
Remote: repo,
|
Remote: repo,
|
||||||
|
|
Loading…
Reference in a new issue