cloud-regionsrv-client/fix-for-sles12-no-trans_update.patch

14 lines
539 B
Diff

diff --git a/lib/cloudregister/registerutils.py b/lib/cloudregister/registerutils.py
index 7825ff0..6770e23 100644
--- a/lib/cloudregister/registerutils.py
+++ b/lib/cloudregister/registerutils.py
@@ -339,6 +339,8 @@ def get_register_cmd():
"""Determine which command we need to use to register the system"""
register_cmd = '/usr/sbin/SUSEConnect'
+ # Return early on SLE12
+ return register_cmd
if is_transactional_system():
cmd_name = 'transactional-update'
for path in ['/sbin/', '/usr/sbin/']: