From 9b87597c243f9b57b8b5c1f73369ee58d1411495 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Tue, 25 Apr 2017 22:38:39 +0200 Subject: [PATCH] Small change to force services definitions to be strings, and to force default names. --- bonobo/config/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonobo/config/services.py b/bonobo/config/services.py index e2dfc5c..2dc38a4 100644 --- a/bonobo/config/services.py +++ b/bonobo/config/services.py @@ -41,8 +41,8 @@ class Service(Option): """ - def __init__(self, type=None, *, required=False, default=None): - super().__init__(type, required=required, default=default) + def __init__(self, name): + super().__init__(str, required=False, default=name) def __set__(self, inst, value): inst.__options_values__[self.name] = validate_service_name(value)