810236 - Preregistered systems don't update facts when registering later with subscription-manager

Petr Chalupa pchalupa at redhat.com
Mon Apr 16 16:08:45 UTC 2012


Hello,

I am from katello team and I am working on 
https://bugzilla.redhat.com/show_bug.cgi?id=810236. I would need rhsm to 
send facts when registering with --consumerid. A patch is attached. 
Please let me know if the modification is ok.

Thanks,
Petr
-------------- next part --------------
diff --git a/src/subscription_manager/managercli.py b/src/subscription_manager/managercli.py
index 6dbc2f3..8e96300 100644
--- a/src/subscription_manager/managercli.py
+++ b/src/subscription_manager/managercli.py
@@ -784,6 +784,8 @@ class RegisterCommand(UserPassCommand):
         # Facts and installed products went out with the registration request,
         # manually write caches to disk:
         self.facts.write_cache()
+        if self.options.consumerid:
+            self.facts.update_check(self.cp, self.options.consumerid, force=True)
         self.installed_mgr.write_cache()
 
         cert_file = ConsumerIdentity.certpath()


More information about the candlepin mailing list