python-common: fix IngressSpec yaml dump

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2021-05-05 15:44:44 -04:00
parent 9dba27edfe
commit 05fdbc8c76

View File

@ -947,6 +947,9 @@ class IngressSpec(ServiceSpec):
'Cannot add ingress: No virtual_ip provided')
yaml.add_representer(IngressSpec, ServiceSpec.yaml_representer)
class CustomContainerSpec(ServiceSpec):
def __init__(self,
service_type: str = 'container',