pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0014-schema-Fix-subtopic-topic-mapping.patch

403b09
From a48b8aa5e4d45b238551c122f88dfc8151314c93 Mon Sep 17 00:00:00 2001
403b09
From: David Kupka <dkupka@redhat.com>
403b09
Date: Thu, 14 Jul 2016 10:15:59 +0200
403b09
Subject: [PATCH] schema: Fix subtopic -> topic mapping
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6069
403b09
403b09
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
403b09
---
403b09
 ipaserver/plugins/schema.py | 3 ++-
403b09
 1 file changed, 2 insertions(+), 1 deletion(-)
403b09
403b09
diff --git a/ipaserver/plugins/schema.py b/ipaserver/plugins/schema.py
403b09
index a82b357899a483fd3b3dc9f7407bd26a4c03aada..8fd7c6ba1c4ed8cd6e27cb8b1b04f48694a4f1ff 100644
403b09
--- a/ipaserver/plugins/schema.py
403b09
+++ b/ipaserver/plugins/schema.py
403b09
@@ -399,7 +399,8 @@ class topic_(MetaObject):
403b09
                         continue
403b09
                     if topic_value is not None:
403b09
                         topic_name = unicode(topic_value)
403b09
-                        topic['topic_topic'] = topic_full_name
403b09
+                        topic['topic_topic'] = '{}/{}'.format(topic_name,
403b09
+                                                              topic_version)
403b09
                     else:
403b09
                         topic.pop('topic_topic', None)
403b09
 
403b09
-- 
403b09
2.7.4
403b09