Hi,
Simple patch which checks if the getRegistrationType API call is
available, assume "none" if not >= 10.11. This was causing
kickstart_export to fail against an older version of Satellite during a
migration.
Thanks,
--
Alan Fitton
Red Hat Consulting
--- spacecmd/kickstart.py 2012-07-04 14:45:07.000000000 +0100
+++ spacecmd/kickstart.py 2012-07-04 14:55:22.000000000 +0100
@@ -1879,9 +1879,11 @@
details['partitioning_scheme'] = \
self.client.kickstart.profile.system.getPartitioningScheme(\
self.session, profile)
- details['reg_type'] = \
- self.client.kickstart.profile.system.getRegistrationType(self.session,\
- profile)
+ if self.check_api_version('10.11'):
+ details['reg_type'] = \
+ self.client.kickstart.profile.system.getRegistrationType(self.session, profile)
+ else:
+ details['reg_type'] = "none"
details['config_mgmt'] = \
self.client.kickstart.profile.system.checkConfigManagement(\
self.session, profile)
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel