From 64a0222bb795d0bc0fce7f1be1f5f7a9cb7f03a6 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Tue, 12 Mar 2024 15:23:29 +0100 Subject: [PATCH 1/2] Use the FQDN instead of the hostname --- src/rhsmlib/services/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rhsmlib/services/register.py b/src/rhsmlib/services/register.py index aa3d451844..841c2b31cc 100644 --- a/src/rhsmlib/services/register.py +++ b/src/rhsmlib/services/register.py @@ -101,7 +101,7 @@ def register( facts_dict = self.facts.get_facts() # Default to the hostname if no name is given - consumer_name = options["name"] or socket.gethostname() + consumer_name = options["name"] or socket.getfqdn() self.plugin_manager.run("pre_register_consumer", name=consumer_name, facts=facts_dict) From 6902757c20bbfa3de024f3b517cb18f53a72cfa8 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Tue, 12 Mar 2024 16:00:24 +0100 Subject: [PATCH 2/2] Update src/rhsmlib/services/register.py Co-authored-by: Maximilian Kolb --- src/rhsmlib/services/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rhsmlib/services/register.py b/src/rhsmlib/services/register.py index 841c2b31cc..2ba1b3fb29 100644 --- a/src/rhsmlib/services/register.py +++ b/src/rhsmlib/services/register.py @@ -100,7 +100,7 @@ def register( environments = options["environments"] facts_dict = self.facts.get_facts() - # Default to the hostname if no name is given + # Default to the FQDN if no name is given consumer_name = options["name"] or socket.getfqdn() self.plugin_manager.run("pre_register_consumer", name=consumer_name, facts=facts_dict)