On 15/10/2015 11:45, Pavel Studeník wrote:
Hello,

I think that syncing channels from devel repo is broken. [...]
satellite-sync -m dumps -c rhel-i386-server-5 -c rhel-i386-server-vt-5

I am attaching a patch which should help - unfortunately we are not able to 
access the channels you mention so it's difficult for us to test that.

Please give the patch a try and report back if it works.

Thanks!
--
Silvio Moioli
SUSE Manager Development Team


--
Silvio Moioli
SUSE Manager Development Team
>From 76694b63d50f7c79d9cf5a6a3de88675976f1120 Mon Sep 17 00:00:00 2001
From: Michael Calmer <m...@suse.de>
Date: Thu, 22 Oct 2015 11:54:22 +0200
Subject: [PATCH] ignore all not any longer supported entitlements

---
 backend/server/importlib/archImport.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/backend/server/importlib/archImport.py b/backend/server/importlib/archImport.py
index d5199fa..21105b7 100644
--- a/backend/server/importlib/archImport.py
+++ b/backend/server/importlib/archImport.py
@@ -144,9 +144,12 @@ class ServerGroupServerArchCompatImport(BaseArchCompatImport):
     arches2_field_name = 'server_group_type'
     submit_method_name = 'processServerGroupServerArchCompatMap'
 
-    # monitoring is no longer supported, ignore any monitoring info for
+    # some entitlements are no longer supported, ignore any of them for
     # backwards compatibility
     def _postprocess(self):
-        self.batch[:] = [entry for entry in self.batch if not
-                         entry[self.arches2_name] == 'monitoring_entitled']
+        self.batch[:] = [entry for entry in self.batch if
+                         entry[self.arches2_name] not in [
+                             'monitoring_entitled', 'sw_mgr_entitled',
+                             'provisioning_entitled', 'nonlinux_entitled',
+                             'virtualization_host_platform']]
         BaseArchCompatImport._postprocess(self)
-- 
2.1.4


_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to