From: Sage Weil Date: Wed, 5 May 2021 19:44:44 +0000 (-0400) Subject: python-common: fix IngressSpec yaml dump X-Git-Tag: v16.2.5~87^2~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39e8136aca17f2f62aeec01bf9f1b94930cdfbc5;p=ceph.git python-common: fix IngressSpec yaml dump Signed-off-by: Sage Weil (cherry picked from commit 05fdbc8c76274952d2ef10e1ab1be3679efe479e) --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 7f5707aaeb7b..dd77c838a54a 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -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',