]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: fix IngressSpec yaml dump
authorSage Weil <sage@newdream.net>
Wed, 5 May 2021 19:44:44 +0000 (15:44 -0400)
committerSage Weil <sage@newdream.net>
Thu, 3 Jun 2021 12:37:48 +0000 (07:37 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 05fdbc8c76274952d2ef10e1ab1be3679efe479e)

src/python-common/ceph/deployment/service_spec.py

index 7f5707aaeb7b041e40642005ff6953a1174cfba2..dd77c838a54ad68f7515fc056a35be16f7d4687d 100644 (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',