1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #37483 from thaJeztah/fix-nit-pick

Use constant for task runtime value
This commit is contained in:
Sebastiaan van Stijn 2018-07-18 17:31:44 +02:00 committed by GitHub
commit cc7cda1968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ func TestServicePlugin(t *testing.T) {
func makePlugin(repo, name string, constraints []string) func(*swarmtypes.Service) {
return func(s *swarmtypes.Service) {
s.Spec.TaskTemplate.Runtime = "plugin"
s.Spec.TaskTemplate.Runtime = swarmtypes.RuntimePlugin
s.Spec.TaskTemplate.PluginSpec = &runtime.PluginSpec{
Name: name,
Remote: repo,