Use constant for task runtime value
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 2b7d34977e72054d197a481a10addd773aa23ca4 Component: engine
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user