spacecmd/src/lib/kickstart.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit b26a75b58ee11f3cf6f9abd5a898889acb89a189
Author: Steven Hardy <shardy(a)redhat.com>
Date: Fri Jul 6 14:00:43 2012 +0100
spacecmd : Fix kickstart_export with old API versions
Workaround kickstart_export problems when used with old
API version (satellite 5.3)
Based-on-patch-by: Alan Fitton <ajf(a)redhat.com>
Signed-off-by: Steven Hardy <shardy(a)redhat.com>
diff --git a/spacecmd/src/lib/kickstart.py b/spacecmd/src/lib/kickstart.py
index a28dfa5..9a8c192 100644
--- a/spacecmd/src/lib/kickstart.py
+++ b/spacecmd/src/lib/kickstart.py
@@ -1879,9 +1879,12 @@ def export_kickstart_getdetails(self, profile, kickstarts):
details['partitioning_scheme'] = \
self.client.kickstart.profile.system.getPartitioningScheme(\
self.session, profile)
- details['reg_type'] = \
- self.client.kickstart.profile.system.getRegistrationType(self.session,\
+ 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)